bug fix 451

This commit is contained in:
1leozhao
2025-06-27 00:14:08 -05:00
parent 3723fe2956
commit 085c7854c9
+2 -2
View File
@@ -134,9 +134,9 @@ func (m *MyTheme) Color(name fyne.ThemeColorName, defVariant fyne.ThemeVariant)
if variant == theme.VariantDark { if variant == theme.VariantDark {
return color.White return color.White
} }
// For light theme, use a darker version of the foreground color instead of pure black // For light theme, use a darker version of the foreground color
foreground := colorOrDefault(colors.Foreground, defColors.Foreground, theme.ColorNameForeground, variant) foreground := colorOrDefault(colors.Foreground, defColors.Foreground, theme.ColorNameForeground, variant)
return darkenColor(foreground, 0.3) return darkenColor(foreground, 0.33)
case ColorNameIconButton: case ColorNameIconButton:
foreground := colorOrDefault(colors.Foreground, defColors.Foreground, theme.ColorNameForeground, variant) foreground := colorOrDefault(colors.Foreground, defColors.Foreground, theme.ColorNameForeground, variant)
if variant == theme.VariantDark { if variant == theme.VariantDark {