Skip to content

Commit 5c437db

Browse files
committed
Titlebar button visibility improvements
1 parent 768d020 commit 5c437db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Files UWP/MainPage.xaml.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,19 @@ public MainPage()
3939
Window.Current.SetTitleBar(DragArea);
4040
var titleBar = ApplicationView.GetForCurrentView().TitleBar;
4141
titleBar.ButtonBackgroundColor = Color.FromArgb(0, 255, 255, 255);
42-
titleBar.ButtonHoverBackgroundColor = Color.FromArgb(75, 10, 10, 10);
42+
titleBar.ButtonInactiveBackgroundColor = Color.FromArgb(0, 255, 255, 255);
4343
titleBar.ButtonHoverBackgroundColor = Color.FromArgb(75, 10, 10, 10);
4444
nv = navView;
4545
accessibleAutoSuggestBox = auto_suggest;
4646
PopulateNavViewWithExternalDrives();
4747
permissionBox = PermissionDialog;
4848

4949

50-
//make the minimize, maximize and close button visible in light theme
50+
// Make the minimize, maximize, and close button visible in different themes
5151
if (App.Current.RequestedTheme == ApplicationTheme.Dark)
5252
{
5353
titleBar.ButtonForegroundColor = Colors.White;
54+
titleBar.ButtonHoverBackgroundColor = Color.FromArgb(75, 240, 240, 240);
5455
}
5556
else if (App.Current.RequestedTheme == ApplicationTheme.Light)
5657
{
@@ -60,6 +61,7 @@ public MainPage()
6061
if (this.RequestedTheme == ElementTheme.Dark)
6162
{
6263
titleBar.ButtonForegroundColor = Colors.White;
64+
titleBar.ButtonHoverBackgroundColor = Color.FromArgb(75, 240, 240, 240);
6365
}
6466
else if (this.RequestedTheme == ElementTheme.Light)
6567
{

0 commit comments

Comments
 (0)