/ src / settings-ui / Settings.UI.Library / ShortcutGuideProperties.cs
ShortcutGuideProperties.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System.Text.Json.Serialization;
 6  
 7  using Settings.UI.Library.Attributes;
 8  
 9  namespace Microsoft.PowerToys.Settings.UI.Library
10  {
11      public class ShortcutGuideProperties
12      {
13          [CmdConfigureIgnore]
14          public HotkeySettings DefaultOpenShortcutGuide => new HotkeySettings(true, false, false, true, 0xBF);
15  
16          public ShortcutGuideProperties()
17          {
18              OverlayOpacity = new IntProperty(90);
19              UseLegacyPressWinKeyBehavior = new BoolProperty(false);
20              PressTimeForGlobalWindowsShortcuts = new IntProperty(900);
21              PressTimeForTaskbarIconShortcuts = new IntProperty(900);
22              Theme = new StringProperty("system");
23              DisabledApps = new StringProperty();
24              OpenShortcutGuide = DefaultOpenShortcutGuide;
25          }
26  
27          [JsonPropertyName("open_shortcutguide")]
28          public HotkeySettings OpenShortcutGuide { get; set; }
29  
30          [JsonPropertyName("overlay_opacity")]
31          public IntProperty OverlayOpacity { get; set; }
32  
33          [JsonPropertyName("use_legacy_press_win_key_behavior")]
34          public BoolProperty UseLegacyPressWinKeyBehavior { get; set; }
35  
36          [JsonPropertyName("press_time")]
37          public IntProperty PressTimeForGlobalWindowsShortcuts { get; set; }
38  
39          [JsonPropertyName("press_time_for_taskbar_icon_shortcuts")]
40          public IntProperty PressTimeForTaskbarIconShortcuts { get; set; }
41  
42          [JsonPropertyName("theme")]
43          public StringProperty Theme { get; set; }
44  
45          [JsonPropertyName("disabled_apps")]
46          public StringProperty DisabledApps { get; set; }
47      }
48  }