fix(ui): Use hover color as default for buttons and inputs
Changed button and input backgrounds to use the brighter hover color as their default appearance instead of dull grey. This makes dropdowns and buttons more visually appealing by default.
This commit is contained in:
parent
9c7ba646ca
commit
35b9b32b15
|
|
@ -37,7 +37,6 @@ func SetColors(grid, text color.Color) {
|
||||||
type MonoTheme struct{}
|
type MonoTheme struct{}
|
||||||
|
|
||||||
func (m *MonoTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color {
|
func (m *MonoTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color {
|
||||||
// Swap hover and selection colors
|
|
||||||
switch name {
|
switch name {
|
||||||
case theme.ColorNameSelection:
|
case theme.ColorNameSelection:
|
||||||
// Use the default hover color for selection
|
// 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:
|
case theme.ColorNameHover:
|
||||||
// Use the default selection color for hover
|
// Use the default selection color for hover
|
||||||
return theme.DefaultTheme().Color(theme.ColorNameSelection, variant)
|
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)
|
return theme.DefaultTheme().Color(name, variant)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user