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:
Stu Leak 2025-12-30 12:02:55 -05:00
parent f50edeb9c6
commit 03569cd813

View File

@ -32,10 +32,19 @@ func SetColors(grid, text color.Color) {
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{}
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)
}