2022-01-26 22:01:24 +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;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
|
|
|
{
|
|
|
|
|
public class MousePointerCrosshairsProperties
|
|
|
|
|
{
|
2023-06-20 21:42:04 +08:00
|
|
|
|
public HotkeySettings DefaultActivationShortcut => new HotkeySettings(true, false, true, false, 0x50); // Win + Alt + P
|
|
|
|
|
|
2022-01-26 22:01:24 +08:00
|
|
|
|
[JsonPropertyName("activation_shortcut")]
|
|
|
|
|
public HotkeySettings ActivationShortcut { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("crosshairs_color")]
|
|
|
|
|
public StringProperty CrosshairsColor { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("crosshairs_opacity")]
|
|
|
|
|
public IntProperty CrosshairsOpacity { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("crosshairs_radius")]
|
|
|
|
|
public IntProperty CrosshairsRadius { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("crosshairs_thickness")]
|
|
|
|
|
public IntProperty CrosshairsThickness { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("crosshairs_border_color")]
|
|
|
|
|
public StringProperty CrosshairsBorderColor { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("crosshairs_border_size")]
|
|
|
|
|
public IntProperty CrosshairsBorderSize { get; set; }
|
|
|
|
|
|
2023-07-18 20:33:32 +08:00
|
|
|
|
[JsonPropertyName("crosshairs_auto_hide")]
|
|
|
|
|
public BoolProperty CrosshairsAutoHide { get; set; }
|
|
|
|
|
|
2023-07-19 22:24:47 +08:00
|
|
|
|
[JsonPropertyName("crosshairs_is_fixed_length_enabled")]
|
|
|
|
|
public BoolProperty CrosshairsIsFixedLengthEnabled { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("crosshairs_fixed_length")]
|
|
|
|
|
public IntProperty CrosshairsFixedLength { get; set; }
|
|
|
|
|
|
2022-01-26 22:01:24 +08:00
|
|
|
|
public MousePointerCrosshairsProperties()
|
|
|
|
|
{
|
2023-06-20 21:42:04 +08:00
|
|
|
|
ActivationShortcut = DefaultActivationShortcut;
|
2022-01-26 22:01:24 +08:00
|
|
|
|
CrosshairsColor = new StringProperty("#FF0000");
|
|
|
|
|
CrosshairsOpacity = new IntProperty(75);
|
|
|
|
|
CrosshairsRadius = new IntProperty(20);
|
|
|
|
|
CrosshairsThickness = new IntProperty(5);
|
|
|
|
|
CrosshairsBorderColor = new StringProperty("#FFFFFF");
|
|
|
|
|
CrosshairsBorderSize = new IntProperty(1);
|
2023-07-18 20:33:32 +08:00
|
|
|
|
CrosshairsAutoHide = new BoolProperty(false);
|
2023-07-19 22:24:47 +08:00
|
|
|
|
CrosshairsIsFixedLengthEnabled = new BoolProperty(false);
|
|
|
|
|
CrosshairsFixedLength = new IntProperty(1);
|
2022-01-26 22:01:24 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|