| | |
| | | public override string ToString() => Value; |
| | | } |
| | | |
| | | public enum DisplayPriority |
| | | { |
| | | DesktopLayer, |
| | | IconLayer, |
| | | AppLayer |
| | | } |
| | | |
| | | public sealed record WidgetRuntimeState |
| | | { |
| | | public required WidgetInstanceId InstanceId { get; init; } |
| | |
| | | public bool IsLocked { get; init; } |
| | | public double Opacity { get; init; } = 1; |
| | | public bool ClickThrough { get; init; } = true; |
| | | public DisplayPriority DisplayPriority { get; init; } = DisplayPriority.IconLayer; |
| | | } |
| | | |
| | | public sealed record WidgetLayoutPatch |
| | |
| | | public double? Opacity { get; init; } |
| | | public bool? ClickThrough { get; init; } |
| | | public double? Scale { get; init; } |
| | | public DisplayPriority? DisplayPriority { get; init; } |
| | | } |