diff --git a/ui/theme.go b/ui/theme.go deleted file mode 100644 index 0b88070..0000000 --- a/ui/theme.go +++ /dev/null @@ -1,32 +0,0 @@ -package ui - -import ( - "image/color" - - "fyne.io/fyne/v2" - "fyne.io/fyne/v2/theme" -) - -type MyTheme struct{} - -var _ fyne.Theme = (*MyTheme)(nil) - -func (m MyTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color { - if name == theme.ColorNameScrollBar { - return theme.DarkTheme().Color(theme.ColorNameForeground, variant) - } - - return theme.DarkTheme().Color(name, variant) -} - -func (m MyTheme) Icon(name fyne.ThemeIconName) fyne.Resource { - return theme.DefaultTheme().Icon(name) -} - -func (m MyTheme) Font(style fyne.TextStyle) fyne.Resource { - return theme.DefaultTheme().Font(style) -} - -func (m MyTheme) Size(name fyne.ThemeSizeName) float32 { - return theme.DefaultTheme().Size(name) -}