fix function name
This commit is contained in:
+1
-1
@@ -134,7 +134,7 @@ func (m *MyTheme) Color(name fyne.ThemeColorName, defVariant fyne.ThemeVariant)
|
|||||||
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 {
|
||||||
// For dark theme, use a lighter version of the foreground color for hover
|
// For dark theme, use a lighter version of the foreground color for hover
|
||||||
return lightenColor(foreground, 0.33)
|
return brightenColor(foreground, 0.33)
|
||||||
}
|
}
|
||||||
// For light theme, use a darker version of the foreground color for hover
|
// For light theme, use a darker version of the foreground color for hover
|
||||||
return darkenColor(foreground, 0.33)
|
return darkenColor(foreground, 0.33)
|
||||||
|
|||||||
Reference in New Issue
Block a user