[Peek] Set button color on theme change (#26564)

* [WIP] Set button color manually

* Remove unused aliases
This commit is contained in:
Stefan Markovic
2023-06-07 16:52:47 +02:00
committed by GitHub
parent 026db38457
commit 40335a6998
2 changed files with 35 additions and 3 deletions

View File

@@ -226,6 +226,14 @@ namespace Peek.UI.Views
appWindow.TitleBar.ExtendsContentIntoTitleBar = true;
appWindow.TitleBar.ButtonBackgroundColor = Colors.Transparent;
appWindow.TitleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
if (ThemeHelpers.GetAppTheme() == AppTheme.Light)
{
appWindow.TitleBar.ButtonForegroundColor = Colors.DarkSlateGray;
}
else
{
appWindow.TitleBar.ButtonForegroundColor = Colors.White;
}
mainWindow.SetTitleBar(this);
}