mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[OOBE]SetTheme function added for oobe in HandleThemeChange function. (#28345)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user