fix bug 451

This commit is contained in:
1leozhao
2025-06-26 16:48:07 -05:00
parent bb8d677aab
commit 3723fe2956
+3 -1
View File
@@ -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 {