2022-01-26 14:01:24 +00: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;
|
2024-10-17 05:14:57 -04:00
|
|
|
|
|
2024-04-02 01:09:47 +02:00
|
|
|
|
using Settings.UI.Library.Attributes;
|
2022-01-26 14:01:24 +00:00
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
|
|
|
|
{
|
|
|
|
|
|
public class MousePointerCrosshairsProperties
|
|
|
|
|
|
{
|
2024-04-02 01:09:47 +02:00
|
|
|
|
[CmdConfigureIgnore]
|
2023-06-20 15:42:04 +02:00
|
|
|
|
public HotkeySettings DefaultActivationShortcut => new HotkeySettings(true, false, true, false, 0x50); // Win + Alt + P
|
|
|
|
|
|
|
2022-01-26 14:01:24 +00: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 14:33:32 +02:00
|
|
|
|
[JsonPropertyName("crosshairs_auto_hide")]
|
|
|
|
|
|
public BoolProperty CrosshairsAutoHide { get; set; }
|
|
|
|
|
|
|
2023-07-19 07:24:47 -07:00
|
|
|
|
[JsonPropertyName("crosshairs_is_fixed_length_enabled")]
|
|
|
|
|
|
public BoolProperty CrosshairsIsFixedLengthEnabled { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("crosshairs_fixed_length")]
|
|
|
|
|
|
public IntProperty CrosshairsFixedLength { get; set; }
|
|
|
|
|
|
|
2023-08-08 18:01:23 +02:00
|
|
|
|
[JsonPropertyName("auto_activate")]
|
|
|
|
|
|
public BoolProperty AutoActivate { get; set; }
|
|
|
|
|
|
|
2022-01-26 14:01:24 +00:00
|
|
|
|
public MousePointerCrosshairsProperties()
|
|
|
|
|
|
{
|
2023-06-20 15:42:04 +02:00
|
|
|
|
ActivationShortcut = DefaultActivationShortcut;
|
2022-01-26 14:01:24 +00: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 14:33:32 +02:00
|
|
|
|
CrosshairsAutoHide = new BoolProperty(false);
|
2023-07-19 07:24:47 -07:00
|
|
|
|
CrosshairsIsFixedLengthEnabled = new BoolProperty(false);
|
|
|
|
|
|
CrosshairsFixedLength = new IntProperty(1);
|
2023-08-08 18:01:23 +02:00
|
|
|
|
AutoActivate = new BoolProperty(false);
|
2022-01-26 14:01:24 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|