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:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/dweymouth/supersonic/backend/player"
|
||||
"github.com/dweymouth/supersonic/backend/player/mpv"
|
||||
"github.com/dweymouth/supersonic/ui/shortcuts"
|
||||
myTheme "github.com/dweymouth/supersonic/ui/theme"
|
||||
"github.com/dweymouth/supersonic/ui/util"
|
||||
"github.com/dweymouth/supersonic/ui/visualizations"
|
||||
)
|
||||
@@ -68,6 +69,7 @@ func (c *Controller) ShowPeakMeter() {
|
||||
c.peakMeter.Refresh()
|
||||
}
|
||||
c.peakMeterWin.Show()
|
||||
SetWindowThemeMode(c.peakMeterWin, fyne.CurrentApp().Settings().Theme().(*myTheme.MyTheme).AppearanceMode())
|
||||
}
|
||||
|
||||
func (c *Controller) stopVisualizationAnim() {
|
||||
|
||||
Reference in New Issue
Block a user