| | |
| | | public double? Opacity { get; init; } |
| | | public bool? ClickThrough { get; init; } |
| | | public double? Scale { get; init; } |
| | | public DisplayLayer? DisplayLayer { get; init; } |
| | | |
| | | public WidgetLayoutPatch ToPatch() => new() |
| | | { |
| | |
| | | IsLocked = IsLocked, |
| | | Opacity = Opacity, |
| | | ClickThrough = ClickThrough, |
| | | Scale = Scale |
| | | Scale = Scale, |
| | | DisplayLayer = DisplayLayer |
| | | }; |
| | | } |
| | | |
| | |
| | | public bool IsLocked { get; init; } |
| | | public double Opacity { get; init; } |
| | | public bool ClickThrough { get; init; } |
| | | [JsonConverter(typeof(JsonStringEnumConverter<DisplayLayer>))] |
| | | public DisplayLayer DisplayLayer { get; init; } |
| | | |
| | | public static WidgetResponse From(WidgetRuntimeState state) => new() |
| | | { |
| | |
| | | IsVisible = state.IsVisible, |
| | | IsLocked = state.IsLocked, |
| | | Opacity = state.Opacity, |
| | | ClickThrough = state.ClickThrough |
| | | ClickThrough = state.ClickThrough, |
| | | DisplayLayer = state.DisplayLayer |
| | | }; |
| | | } |
| | | |