mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
apply correct theme at startup (#7796)
This commit is contained in:
committed by
GitHub
parent
4228b9a772
commit
269b12226a
@@ -9,7 +9,6 @@ using System.Threading;
|
|||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using ManagedCommon;
|
using ManagedCommon;
|
||||||
using Microsoft.PowerToys.Settings.UI.Library;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
|
||||||
using PowerLauncher.Helper;
|
using PowerLauncher.Helper;
|
||||||
using Wox.Core.Plugin;
|
using Wox.Core.Plugin;
|
||||||
using Wox.Infrastructure.Hotkey;
|
using Wox.Infrastructure.Hotkey;
|
||||||
@@ -43,6 +42,9 @@ namespace PowerLauncher
|
|||||||
|
|
||||||
// Load initial settings file
|
// Load initial settings file
|
||||||
OverloadSettings();
|
OverloadSettings();
|
||||||
|
|
||||||
|
// Apply theme at startup
|
||||||
|
_themeManager.ChangeTheme(_settings.Theme, _settings.Theme == Theme.System);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CreateSettingsIfNotExists()
|
public void CreateSettingsIfNotExists()
|
||||||
|
|||||||
Reference in New Issue
Block a user