/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/settings-ui/Settings.UI.Library/ShortcutGuideProperties.cs
43 строки
2 KB
Noraa Junker
Shortcut Guide V2 (#40834)
21 май 2026, 18:27
Не верифицирован
21 май 2026, 18:27
9699d8a
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Text.Json.Serialization; using Settings.UI.Library.Attributes; namespace Microsoft.PowerToys.Settings.UI.Library { public class ShortcutGuideProperties { [CmdConfigureIgnore] public HotkeySettings DefaultOpenShortcutGuide => new HotkeySettings(true, false, false, true, 0xBF); public ShortcutGuideProperties() { Theme = new StringProperty("system"); DisabledApps = new StringProperty(); OpenShortcutGuide = DefaultOpenShortcutGuide; FirstRun = new BoolProperty(true); WindowPosition = new IntProperty((int)ShortcutGuideWindowPosition.Left); } [JsonPropertyName("open_shortcutguide")] public HotkeySettings OpenShortcutGuide { get; set; } [JsonPropertyName("theme")] public StringProperty Theme { get; set; } [JsonPropertyName("disabled_apps")] public StringProperty DisabledApps { get; set; } [JsonPropertyName("first_run")] public BoolProperty FirstRun { get; set; } // Migrated from StringProperty ("left" / "right") to IntProperty in v3.0. // The converter accepts both shapes so existing users' settings.json keeps working. [JsonPropertyName("window_position")] [JsonConverter(typeof(ShortcutGuideWindowPositionConverter))] public IntProperty WindowPosition { get; set; } } }