mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-24 23:49:40 +01:00
38 lines
1013 B
C#
38 lines
1013 B
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;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
{
|
|
public class WorkspacesProperties
|
|
{
|
|
public enum SortByProperty
|
|
{
|
|
LastLaunched,
|
|
Created,
|
|
Name,
|
|
}
|
|
|
|
public static readonly HotkeySettings DefaultHotkeyValue = new HotkeySettings(true, true, false, false, 0xC0);
|
|
|
|
public WorkspacesProperties()
|
|
{
|
|
Hotkey = new KeyboardKeysProperty(DefaultHotkeyValue);
|
|
}
|
|
|
|
[JsonPropertyName("hotkey")]
|
|
public KeyboardKeysProperty Hotkey { get; set; }
|
|
|
|
[JsonPropertyName("sortby")]
|
|
public SortByProperty SortBy { get; set; }
|
|
|
|
public string ToJsonString()
|
|
{
|
|
return JsonSerializer.Serialize(this);
|
|
}
|
|
}
|
|
}
|