mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [ ] Closes: #xxx - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [x] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder This pull request introduces a minor update to the `ZoomItProperties` class in the `Settings.UI.Library` project. The change adds a new property, `AnimateZoom`, with a JSON property name annotation. * [`src/settings-ui/Settings.UI.Library/ZoomItProperties.cs`](diffhunk://#diff-2cd3f90110c7ba387a449d246b4949c3f6cf7f746865f327dbb70f01feeb0cf1R81): Added a new `BoolProperty` named `AnimateZoom` with a `[JsonPropertyName("AnimnateZoom")]` attribute. - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx <!-- Provide a more detailed description of the PR, other things fixed, or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Locally checked, no broken any more
93 lines
3.1 KiB
C#
93 lines
3.1 KiB
C#
// 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 ZoomItProperties
|
|
{
|
|
public ZoomItProperties()
|
|
{
|
|
}
|
|
|
|
[CmdConfigureIgnore]
|
|
public static HotkeySettings DefaultToggleKey => new HotkeySettings(false, true, false, false, '1'); // Ctrl+1
|
|
|
|
[CmdConfigureIgnore]
|
|
public static HotkeySettings DefaultLiveZoomToggleKey => new HotkeySettings(false, true, false, false, '4'); // Ctrl+4
|
|
|
|
[CmdConfigureIgnore]
|
|
public static HotkeySettings DefaultDrawToggleKey => new HotkeySettings(false, true, false, false, '2'); // Ctrl+2
|
|
|
|
[CmdConfigureIgnore]
|
|
public static HotkeySettings DefaultRecordToggleKey => new HotkeySettings(false, true, false, false, '5'); // Ctrl+5
|
|
|
|
[CmdConfigureIgnore]
|
|
public static HotkeySettings DefaultSnipToggleKey => new HotkeySettings(false, true, false, false, '6'); // Ctrl+6
|
|
|
|
[CmdConfigureIgnore]
|
|
public static HotkeySettings DefaultBreakTimerKey => new HotkeySettings(false, true, false, false, '3'); // Ctrl+3
|
|
|
|
[CmdConfigureIgnore]
|
|
public static HotkeySettings DefaultDemoTypeToggleKey => new HotkeySettings(false, true, false, false, '7'); // Ctrl+7
|
|
|
|
public KeyboardKeysProperty ToggleKey { get; set; }
|
|
|
|
public KeyboardKeysProperty LiveZoomToggleKey { get; set; }
|
|
|
|
public KeyboardKeysProperty DrawToggleKey { get; set; }
|
|
|
|
public KeyboardKeysProperty RecordToggleKey { get; set; }
|
|
|
|
public KeyboardKeysProperty SnipToggleKey { get; set; }
|
|
|
|
public KeyboardKeysProperty BreakTimerKey { get; set; }
|
|
|
|
public StringProperty Font { get; set; }
|
|
|
|
public KeyboardKeysProperty DemoTypeToggleKey { get; set; }
|
|
|
|
public StringProperty DemoTypeFile { get; set; }
|
|
|
|
public IntProperty DemoTypeSpeedSlider { get; set; }
|
|
|
|
public BoolProperty DemoTypeUserDrivenMode { get; set; }
|
|
|
|
public IntProperty BreakTimeout { get; set; }
|
|
|
|
public IntProperty BreakOpacity { get; set; }
|
|
|
|
public BoolProperty BreakPlaySoundFile { get; set; }
|
|
|
|
public StringProperty BreakSoundFile { get; set; }
|
|
|
|
public BoolProperty BreakShowBackgroundFile { get; set; }
|
|
|
|
public BoolProperty BreakBackgroundStretch { get; set; }
|
|
|
|
public StringProperty BreakBackgroundFile { get; set; }
|
|
|
|
public IntProperty BreakTimerPosition { get; set; }
|
|
|
|
public BoolProperty BreakShowDesktop { get; set; }
|
|
|
|
public BoolProperty ShowExpiredTime { get; set; }
|
|
|
|
public BoolProperty ShowTrayIcon { get; set; }
|
|
|
|
[JsonPropertyName("AnimnateZoom")]
|
|
public BoolProperty AnimateZoom { get; set; }
|
|
|
|
public IntProperty ZoominSliderLevel { get; set; }
|
|
|
|
public IntProperty RecordScaling { get; set; }
|
|
|
|
public BoolProperty CaptureAudio { get; set; }
|
|
|
|
public StringProperty MicrophoneDeviceId { get; set; }
|
|
}
|
|
}
|