Match window border color to app theme rather than OS theme (#958)

* MacOS: match window chrome to app light/dark mode when app setting is different from OS

* match window border to app theme on Windows
This commit is contained in:
Drew Weymouth
2026-06-24 13:46:09 -07:00
committed by GitHub
parent 2774970ca8
commit 67623366f5
9 changed files with 139 additions and 0 deletions
+5
View File
@@ -16,6 +16,8 @@ import (
"github.com/dweymouth/supersonic/res"
"github.com/dweymouth/supersonic/res/wintaskbarthumbs"
"github.com/dweymouth/supersonic/ui"
"github.com/dweymouth/supersonic/ui/controller"
myTheme "github.com/dweymouth/supersonic/ui/theme"
"github.com/dweymouth/supersonic/ui/util"
"golang.org/x/term"
@@ -133,6 +135,9 @@ func main() {
fyneApp.Run()
} else {
fyneApp.Lifecycle().SetOnStarted(func() {
if mode := fyne.CurrentApp().Settings().Theme().(*myTheme.MyTheme).AppearanceMode(); mode != myTheme.AppearanceAuto {
controller.SetWindowThemeMode(mainWindow.Window, mode)
}
defaultServer := myApp.ServerManager.GetDefaultServer()
if defaultServer == nil {
mainWindow.Controller.PromptForFirstServer()