Merge branch 'main' into feature/shuffle

This commit is contained in:
Siiiiinth
2026-02-20 15:18:22 +01:00
11 changed files with 132 additions and 15 deletions
+5
View File
@@ -273,6 +273,11 @@ func (m *MainWindow) setInitialSize() {
m.Window.Resize(m.DesiredSize())
}
func (m *MainWindow) ReloadTheme() {
m.theme.ReloadThemeFile()
fyne.CurrentApp().Settings().SetTheme(m.theme)
}
func (m *MainWindow) StartupPage() controller.Route {
switch m.App.Config.Application.StartupPage {
case "Artists":
+5
View File
@@ -110,6 +110,11 @@ func NewMyTheme(config *backend.ThemeConfig, themeFileDir string) *MyTheme {
return m
}
// ReloadThemeFile reloads the currently loaded theme file.
func (m *MyTheme) ReloadThemeFile() {
m.loadedThemeFile = nil
}
func (m *MyTheme) Color(name fyne.ThemeColorName, defVariant fyne.ThemeVariant) color.Color {
// load theme file if necessary
if m.loadedThemeFile == nil || m.config.ThemeFile != m.loadedThemeFilename {