From 3723fe2956e650088d4fd9dd902c77f26c54d03f Mon Sep 17 00:00:00 2001 From: 1leozhao Date: Thu, 26 Jun 2025 16:48:07 -0500 Subject: [PATCH] fix bug 451 --- ui/theme/theme.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/theme/theme.go b/ui/theme/theme.go index 6482491..9e9acae 100644 --- a/ui/theme/theme.go +++ b/ui/theme/theme.go @@ -134,7 +134,9 @@ func (m *MyTheme) Color(name fyne.ThemeColorName, defVariant fyne.ThemeVariant) if variant == theme.VariantDark { return color.White } - return color.Black + // For light theme, use a darker version of the foreground color instead of pure black + foreground := colorOrDefault(colors.Foreground, defColors.Foreground, theme.ColorNameForeground, variant) + return darkenColor(foreground, 0.3) case ColorNameIconButton: foreground := colorOrDefault(colors.Foreground, defColors.Foreground, theme.ColorNameForeground, variant) if variant == theme.VariantDark {