Skip to content

Commit ca7c75a

Browse files
committed
Define Microsoft.UI
1 parent 9c49a41 commit ca7c75a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
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;
9-
using Windows.Storage;
108
using Windows.UI;
119
using Windows.UI.ViewManagement;
1210

@@ -88,8 +86,8 @@ public void SetAppThemeMode(Window? window = null, AppWindowTitleBar? titleBar =
8886

8987
if (titleBar is not null)
9088
{
91-
titleBar.ButtonBackgroundColor = Colors.Transparent;
92-
titleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
89+
titleBar.ButtonBackgroundColor = Microsoft.UI.Colors.Transparent;
90+
titleBar.ButtonInactiveBackgroundColor = Microsoft.UI.Colors.Transparent;
9391

9492
switch (rootTheme)
9593
{
@@ -99,11 +97,11 @@ public void SetAppThemeMode(Window? window = null, AppWindowTitleBar? titleBar =
9997
break;
10098
case ElementTheme.Light:
10199
titleBar.ButtonHoverBackgroundColor = Color.FromArgb(51, 0, 0, 0);
102-
titleBar.ButtonForegroundColor = Colors.Black;
100+
titleBar.ButtonForegroundColor = Microsoft.UI.Colors.Black;
103101
break;
104102
case ElementTheme.Dark:
105103
titleBar.ButtonHoverBackgroundColor = Color.FromArgb(51, 255, 255, 255);
106-
titleBar.ButtonForegroundColor = Colors.White;
104+
titleBar.ButtonForegroundColor = Microsoft.UI.Colors.White;
107105
break;
108106
}
109107
}

0 commit comments

Comments
 (0)