2022-08-27 00:01:50 +08:00
|
|
|
|
// 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 Microsoft.PowerToys.Settings.UI.Library.Enumerations;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
|
|
|
{
|
|
|
|
|
public class PowerAccentProperties
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("activation_key")]
|
|
|
|
|
public PowerAccentActivationKey ActivationKey { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("toolbar_position")]
|
|
|
|
|
public StringProperty ToolbarPosition { get; set; }
|
|
|
|
|
|
2022-09-01 23:56:19 +08:00
|
|
|
|
[JsonPropertyName("input_time_ms")]
|
|
|
|
|
public IntProperty InputTime { get; set; }
|
|
|
|
|
|
2022-09-29 22:28:14 +08:00
|
|
|
|
[JsonPropertyName("selected_lang")]
|
|
|
|
|
public StringProperty SelectedLang { get; set; }
|
|
|
|
|
|
2022-11-15 20:47:52 +08:00
|
|
|
|
[JsonPropertyName("excluded_apps")]
|
|
|
|
|
public StringProperty ExcludedApps { get; set; }
|
|
|
|
|
|
2022-12-02 22:45:49 +08:00
|
|
|
|
[JsonPropertyName("show_description")]
|
|
|
|
|
public bool ShowUnicodeDescription { get; set; }
|
|
|
|
|
|
2023-01-03 20:44:57 +08:00
|
|
|
|
[JsonPropertyName("sort_by_usage_frequency")]
|
|
|
|
|
public bool SortByUsageFrequency { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("start_selection_from_the_left")]
|
|
|
|
|
public bool StartSelectionFromTheLeft { get; set; }
|
|
|
|
|
|
2022-08-27 00:01:50 +08:00
|
|
|
|
public PowerAccentProperties()
|
|
|
|
|
{
|
|
|
|
|
ActivationKey = PowerAccentActivationKey.Both;
|
|
|
|
|
ToolbarPosition = "Top center";
|
2022-12-14 01:15:56 +08:00
|
|
|
|
InputTime = new IntProperty(PowerAccentSettings.DefaultInputTimeMs);
|
2022-09-29 22:28:14 +08:00
|
|
|
|
SelectedLang = "ALL";
|
2022-11-15 20:47:52 +08:00
|
|
|
|
ExcludedApps = new StringProperty();
|
2022-12-02 22:45:49 +08:00
|
|
|
|
ShowUnicodeDescription = false;
|
2023-01-03 20:44:57 +08:00
|
|
|
|
SortByUsageFrequency = false;
|
|
|
|
|
StartSelectionFromTheLeft = false;
|
2022-08-27 00:01:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|