Compare commits
3 Commits
8403c991e9
...
a486961c4a
| Author | SHA1 | Date | |
|---|---|---|---|
| a486961c4a | |||
| d0a35cdcb2 | |||
| cac747f5c2 |
|
|
@ -37,7 +37,6 @@ func SetColors(grid, text color.Color) {
|
|||
type MonoTheme struct{}
|
||||
|
||||
func (m *MonoTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color {
|
||||
// Swap hover and selection colors
|
||||
switch name {
|
||||
case theme.ColorNameSelection:
|
||||
// Use the default hover color for selection
|
||||
|
|
@ -45,6 +44,12 @@ func (m *MonoTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) c
|
|||
case theme.ColorNameHover:
|
||||
// Use the default selection color for hover
|
||||
return theme.DefaultTheme().Color(theme.ColorNameSelection, variant)
|
||||
case theme.ColorNameButton:
|
||||
// Use hover color as default button background
|
||||
return theme.DefaultTheme().Color(theme.ColorNameHover, variant)
|
||||
case theme.ColorNameInputBackground:
|
||||
// Use hover color as default input background (for dropdowns/entries)
|
||||
return theme.DefaultTheme().Color(theme.ColorNameHover, variant)
|
||||
}
|
||||
return theme.DefaultTheme().Color(name, variant)
|
||||
}
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -9197,7 +9197,7 @@ Metadata: %s`,
|
|||
keyLabel := widget.NewLabel(key + ":")
|
||||
keyLabel.TextStyle = fyne.TextStyle{Bold: true}
|
||||
valueLabel := widget.NewLabel(value)
|
||||
// Don't wrap - let text flow naturally
|
||||
valueLabel.Wrapping = fyne.TextWrapWord
|
||||
return container.NewHBox(keyLabel, valueLabel)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -200,6 +200,7 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject {
|
|||
|
||||
descLabel := widget.NewLabel(dep.Description)
|
||||
descLabel.TextStyle = fyne.TextStyle{Italic: true}
|
||||
descLabel.Wrapping = fyne.TextWrapWord
|
||||
|
||||
installLabel := widget.NewLabel(dep.InstallCmd)
|
||||
installLabel.Wrapping = fyne.TextWrapWord
|
||||
|
|
@ -223,7 +224,9 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject {
|
|||
)
|
||||
|
||||
if !isInstalled {
|
||||
infoBox.Add(widget.NewLabel("Install: " + installLabel.Text))
|
||||
installCmdLabel := widget.NewLabel("Install: " + installLabel.Text)
|
||||
installCmdLabel.Wrapping = fyne.TextWrapWord
|
||||
infoBox.Add(installCmdLabel)
|
||||
}
|
||||
|
||||
// Check which modules need this dependency
|
||||
|
|
@ -246,6 +249,7 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject {
|
|||
if len(modulesNeeding) > 0 {
|
||||
neededLabel := widget.NewLabel("Required by: " + strings.Join(modulesNeeding, ", "))
|
||||
neededLabel.TextStyle = fyne.TextStyle{Italic: true}
|
||||
neededLabel.Wrapping = fyne.TextWrapWord
|
||||
infoBox.Add(neededLabel)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user