From 03569cd813e08de133cae9e38aa27e01e8f7b768 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Tue, 30 Dec 2025 12:02:55 -0500 Subject: [PATCH] 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 --- internal/ui/components.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/ui/components.go b/internal/ui/components.go index 99a0f23..a394ecb 100644 --- a/internal/ui/components.go +++ b/internal/ui/components.go @@ -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) }