rm old theme file
This commit is contained in:
-32
@@ -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)
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user