Swap hover and selection UI colors
- Blue color now used as default selection/background - Mid-grey now used as hover color - Applied through MonoTheme Color() method override - Affects all dropdowns, lists, and selectable UI elements Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f50edeb9c6
commit
03569cd813
|
|
@ -32,10 +32,19 @@ func SetColors(grid, text color.Color) {
|
||||||
TextColor = text
|
TextColor = text
|
||||||
}
|
}
|
||||||
|
|
||||||
// MonoTheme ensures all text uses a monospace font
|
// MonoTheme ensures all text uses a monospace font and swaps hover/selection colors
|
||||||
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 {
|
||||||
|
case theme.ColorNameSelection:
|
||||||
|
// Use the default hover color for selection
|
||||||
|
return theme.DefaultTheme().Color(theme.ColorNameHover, variant)
|
||||||
|
case theme.ColorNameHover:
|
||||||
|
// Use the default selection color for hover
|
||||||
|
return theme.DefaultTheme().Color(theme.ColorNameSelection, variant)
|
||||||
|
}
|
||||||
return theme.DefaultTheme().Color(name, variant)
|
return theme.DefaultTheme().Color(name, variant)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user