[OOBE]SetTheme function added for oobe in HandleThemeChange function. (#28345)
This commit is contained in:
Родитель
ef56dcacf0
Коммит
5e353640d7
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче