[OOBE]SetTheme function added for oobe in HandleThemeChange function. (#28345)

This commit is contained in:
gokcekantarci
2023-09-07 18:44:42 +03:00
committed by GitHub
parent ef56dcacf0
commit 5e353640d7
2 changed files with 2 additions and 1 deletions

View File

@@ -288,6 +288,7 @@ namespace Microsoft.PowerToys.Settings.UI
{
var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(oobeWindow);
ThemeHelpers.SetImmersiveDarkMode(hWnd, isDark);
oobeWindow.SetTheme(isDark);
SetContentTheme(isDark, oobeWindow);
}

View File

@@ -133,7 +133,7 @@ namespace Microsoft.PowerToys.Settings.UI
}
}
private void SetTheme(bool isDark)
public void SetTheme(bool isDark)
{
shellPage.RequestedTheme = isDark ? ElementTheme.Dark : ElementTheme.Light;
}