Fix #371: add a portable mode option

This commit is contained in:
Drew Weymouth
2024-05-25 08:28:50 -07:00
parent b15feee85f
commit d08b563b8c
4 changed files with 80 additions and 31 deletions
+1 -2
View File
@@ -7,7 +7,6 @@ import (
"strings"
"time"
"github.com/20after4/configdir"
"github.com/dweymouth/supersonic/backend"
"github.com/dweymouth/supersonic/backend/mediaprovider"
"github.com/dweymouth/supersonic/res"
@@ -60,7 +59,7 @@ func NewMainWindow(fyneApp fyne.App, appName, displayAppName, appVersion string,
m := MainWindow{
App: app,
Window: fyneApp.NewWindow(displayAppName),
theme: theme.NewMyTheme(&app.Config.Theme, configdir.LocalConfig(appName, "themes")),
theme: theme.NewMyTheme(&app.Config.Theme, app.ThemesDir()),
}
m.theme.NormalFont = app.Config.Application.FontNormalTTF