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
+3
View File
@@ -557,6 +557,9 @@ func (m *MainWindow) addShortcuts() {
func (m *MainWindow) showSettingsDialog() {
m.Controller.ShowSettingsDialog(func() {
fyne.CurrentApp().Settings().SetTheme(m.theme)
for _, w := range fyne.CurrentApp().Driver().AllWindows() {
controller.SetWindowThemeMode(w, m.theme.AppearanceMode())
}
}, m.theme.ListThemeFiles())
}