Update settings

This commit is contained in:
Den Delimarsky
2021-04-07 17:05:45 -07:00
parent 0e0bae0198
commit 15677cef4a
9 changed files with 144 additions and 15 deletions

View File

@@ -10,23 +10,23 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
public EspressoProperties()
{
IsEnabled = new BoolProperty();
KeepDisplayOn = new BoolProperty();
Mode = EspressoMode.INDEFINITE;
TimeAllocation = new IntProperty();
Hours = new IntProperty();
Minutes = new IntProperty();
}
[JsonPropertyName("espresso_is_enabled")]
public BoolProperty IsEnabled { get; set; }
[JsonPropertyName("espresso_keep_display_on")]
public BoolProperty KeepDisplayOn { get; set; }
[JsonPropertyName("espresso_mode")]
public EspressoMode Mode { get; set; }
[JsonPropertyName("espresso_time_allocation")]
public IntProperty TimeAllocation { get; set; }
[JsonPropertyName("espresso_hours")]
public IntProperty Hours { get; set; }
[JsonPropertyName("espresso_minutes")]
public IntProperty Minutes { get; set; }
}
public enum EspressoMode