remove separators and make page background darker

This commit is contained in:
Drew Weymouth
2023-01-03 16:26:03 -08:00
parent 44536b8bef
commit e5c9920c12
4 changed files with 47 additions and 13 deletions
+32
View File
@@ -0,0 +1,32 @@
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)
}