From 63b8621c7922b4dc5e5d4b12b451e8570c9feaa9 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Fri, 27 Jun 2025 17:03:00 -0700 Subject: [PATCH] apply similar logic for dark theme --- ui/theme/theme.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/theme/theme.go b/ui/theme/theme.go index f8c5f5b..7ae0002 100644 --- a/ui/theme/theme.go +++ b/ui/theme/theme.go @@ -131,11 +131,12 @@ func (m *MyTheme) Color(name fyne.ThemeColorName, defVariant fyne.ThemeVariant) disabled := colorOrDefault(colors.Disabled, defColors.Disabled, theme.ColorNameDisabled, variant) return BlendColors(foreground, disabled, 0.33) case ColorNameHoveredIconButton: - if variant == theme.VariantDark { - return color.White - } - // For light theme, use a darker version of the foreground color foreground := colorOrDefault(colors.Foreground, defColors.Foreground, theme.ColorNameForeground, variant) + if variant == theme.VariantDark { + // For dark theme, use a lighter version of the foreground color for hover + return lightenColor(foreground, 0.33) + } + // For light theme, use a darker version of the foreground color for hover return darkenColor(foreground, 0.33) case ColorNameIconButton: foreground := colorOrDefault(colors.Foreground, defColors.Foreground, theme.ColorNameForeground, variant)