mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Changed WindowsAccentMode (int32) Theme setting to ThemeBlurEnabled (boolean):
- Exposed a new function "SetBlurForWindow" in WindowIntelopHelper that handles the blur. - Deleted Accent and Test themes - Changed SimpleBlur and Base themes according to changes
This commit is contained in:
@@ -56,7 +56,7 @@ namespace Wox.Core.Theme
|
||||
ResourceMerger.ApplyThemeResource(this);
|
||||
|
||||
UserSettingStorage.Instance.Theme = themeName;
|
||||
UserSettingStorage.Instance.ThemeAccentMode = (int)Application.Current.Resources["WindowsAccentMode"];
|
||||
UserSettingStorage.Instance.ThemeBlurEnabled = (bool)Application.Current.Resources["ThemeBlurEnabled"];
|
||||
UserSettingStorage.Instance.Save();
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Wox.Core.UserSettings
|
||||
public string ResultItemFontStretch { get; set; }
|
||||
|
||||
[JsonProperty]
|
||||
public int ThemeAccentMode { get; set; }
|
||||
public bool ThemeBlurEnabled { get; set; }
|
||||
|
||||
[JsonProperty]
|
||||
public double WindowLeft { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user