2021-10-25 19:39:48 +01: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;
|
2021-10-25 19:39:48 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
|
|
|
|
{
|
|
|
|
|
|
public class FindMyMouseProperties
|
|
|
|
|
|
{
|
2024-04-02 01:09:47 +02:00
|
|
|
|
[CmdConfigureIgnore]
|
2023-09-04 17:58:37 +02:00
|
|
|
|
public HotkeySettings DefaultActivationShortcut => new HotkeySettings(true, false, false, true, 0x46);
|
|
|
|
|
|
|
2022-02-11 22:52:57 +00:00
|
|
|
|
[JsonPropertyName("activation_method")]
|
|
|
|
|
|
public IntProperty ActivationMethod { get; set; }
|
|
|
|
|
|
|
2024-06-03 07:44:11 -04:00
|
|
|
|
[JsonPropertyName("include_win_key")]
|
|
|
|
|
|
public BoolProperty IncludeWinKey { get; set; }
|
|
|
|
|
|
|
2023-09-04 17:58:37 +02:00
|
|
|
|
[JsonPropertyName("activation_shortcut")]
|
|
|
|
|
|
public HotkeySettings ActivationShortcut { get; set; }
|
|
|
|
|
|
|
2021-10-25 19:39:48 +01:00
|
|
|
|
[JsonPropertyName("do_not_activate_on_game_mode")]
|
|
|
|
|
|
public BoolProperty DoNotActivateOnGameMode { get; set; }
|
|
|
|
|
|
|
2021-11-23 16:52:17 +00:00
|
|
|
|
[JsonPropertyName("background_color")]
|
|
|
|
|
|
public StringProperty BackgroundColor { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("spotlight_color")]
|
|
|
|
|
|
public StringProperty SpotlightColor { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("spotlight_radius")]
|
|
|
|
|
|
public IntProperty SpotlightRadius { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("animation_duration_ms")]
|
|
|
|
|
|
public IntProperty AnimationDurationMs { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("spotlight_initial_zoom")]
|
|
|
|
|
|
public IntProperty SpotlightInitialZoom { get; set; }
|
|
|
|
|
|
|
2022-02-14 18:22:05 +00:00
|
|
|
|
[JsonPropertyName("excluded_apps")]
|
|
|
|
|
|
public StringProperty ExcludedApps { get; set; }
|
|
|
|
|
|
|
2022-03-04 12:28:11 +00:00
|
|
|
|
[JsonPropertyName("shaking_minimum_distance")]
|
|
|
|
|
|
public IntProperty ShakingMinimumDistance { get; set; }
|
|
|
|
|
|
|
2024-01-16 17:35:54 +00:00
|
|
|
|
[JsonPropertyName("shaking_interval_ms")]
|
|
|
|
|
|
public IntProperty ShakingIntervalMs { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("shaking_factor")]
|
|
|
|
|
|
public IntProperty ShakingFactor { get; set; }
|
|
|
|
|
|
|
2021-10-25 19:39:48 +01:00
|
|
|
|
public FindMyMouseProperties()
|
|
|
|
|
|
{
|
2022-02-11 22:52:57 +00:00
|
|
|
|
ActivationMethod = new IntProperty(0);
|
2024-06-03 07:44:11 -04:00
|
|
|
|
IncludeWinKey = new BoolProperty(false);
|
2023-09-04 17:58:37 +02:00
|
|
|
|
ActivationShortcut = DefaultActivationShortcut;
|
2021-10-25 19:39:48 +01:00
|
|
|
|
DoNotActivateOnGameMode = new BoolProperty(true);
|
2025-10-08 02:08:24 +08:00
|
|
|
|
BackgroundColor = new StringProperty("#80000000"); // ARGB (#AARRGGBB)
|
|
|
|
|
|
SpotlightColor = new StringProperty("#80FFFFFF");
|
2021-11-23 16:52:17 +00:00
|
|
|
|
SpotlightRadius = new IntProperty(100);
|
|
|
|
|
|
AnimationDurationMs = new IntProperty(500);
|
|
|
|
|
|
SpotlightInitialZoom = new IntProperty(9);
|
2022-02-14 18:22:05 +00:00
|
|
|
|
ExcludedApps = new StringProperty();
|
2022-03-04 12:28:11 +00:00
|
|
|
|
ShakingMinimumDistance = new IntProperty(1000);
|
2024-01-16 17:35:54 +00:00
|
|
|
|
ShakingIntervalMs = new IntProperty(1000);
|
|
|
|
|
|
ShakingFactor = new IntProperty(400);
|
2021-10-25 19:39:48 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|