switch to simpler way of themeing PNG icons

This commit is contained in:
Drew Weymouth
2023-05-01 17:49:59 -07:00
parent 0d8c7d3830
commit 6c81db4398
11 changed files with 91 additions and 92 deletions
+5 -5
View File
@@ -27,11 +27,11 @@ func main() {
}
fyneApp := app.New()
fyneApp.Settings().SetTheme(&theme.MyTheme{
NormalFont: myApp.Config.Application.FontNormalTTF,
BoldFont: myApp.Config.Application.FontBoldTTF,
Config: &myApp.Config.Theme,
})
theme := theme.NewMyTheme(&myApp.Config.Theme)
theme.NormalFont = myApp.Config.Application.FontNormalTTF
theme.BoldFont = myApp.Config.Application.FontBoldTTF
fyneApp.Settings().SetTheme(theme)
w := float32(myApp.Config.Application.WindowWidth)
if w <= 1 {
w = 1000