mirror of
https://gitee.com/konyshe/goodlink.git
synced 2026-04-22 22:57:20 +08:00
Refactor theme implementation to use DefaultTheme instead of DarkTheme for color, icon, and size methods.
This commit is contained in:
+3
-3
@@ -26,13 +26,13 @@ func (m MyTheme) Font(fyne.TextStyle) fyne.Resource {
|
||||
}
|
||||
|
||||
func (*MyTheme) Color(n fyne.ThemeColorName, v fyne.ThemeVariant) color.Color {
|
||||
return theme.DarkTheme().Color(n, v)
|
||||
return theme.DefaultTheme().Color(n, theme.VariantDark)
|
||||
}
|
||||
|
||||
func (*MyTheme) Icon(n fyne.ThemeIconName) fyne.Resource {
|
||||
return theme.DarkTheme().Icon(n)
|
||||
return theme.DefaultTheme().Icon(n)
|
||||
}
|
||||
|
||||
func (*MyTheme) Size(n fyne.ThemeSizeName) float32 {
|
||||
return theme.DarkTheme().Size(n)
|
||||
return theme.DefaultTheme().Size(n)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user