Skip to content

Commit c725e8d

Browse files
committed
Define Microsoft.UI
1 parent 71df918 commit c725e8d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Files.App/Services/App/AppThemeModeService.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License. See the LICENSE.
33

44
using Microsoft.Extensions.Logging;
5-
using Microsoft.UI;
65
using Microsoft.UI.Windowing;
76
using Microsoft.UI.Xaml;
87
using Microsoft.UI.Xaml.Media;
@@ -88,8 +87,8 @@ public void SetAppThemeMode(Window? window = null, AppWindowTitleBar? titleBar =
8887

8988
if (titleBar is not null)
9089
{
91-
titleBar.ButtonBackgroundColor = Colors.Transparent;
92-
titleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
90+
titleBar.ButtonBackgroundColor = Microsoft.UI.Colors.Transparent;
91+
titleBar.ButtonInactiveBackgroundColor = Microsoft.UI.Colors.Transparent;
9392

9493
switch (rootTheme)
9594
{
@@ -99,11 +98,11 @@ public void SetAppThemeMode(Window? window = null, AppWindowTitleBar? titleBar =
9998
break;
10099
case ElementTheme.Light:
101100
titleBar.ButtonHoverBackgroundColor = Color.FromArgb(51, 0, 0, 0);
102-
titleBar.ButtonForegroundColor = Colors.Black;
101+
titleBar.ButtonForegroundColor = Microsoft.UI.Colors.Black;
103102
break;
104103
case ElementTheme.Dark:
105104
titleBar.ButtonHoverBackgroundColor = Color.FromArgb(51, 255, 255, 255);
106-
titleBar.ButtonForegroundColor = Colors.White;
105+
titleBar.ButtonForegroundColor = Microsoft.UI.Colors.White;
107106
break;
108107
}
109108
}

0 commit comments

Comments
 (0)