From 9806138b910904d2f982ebf9471b295fb6939715 Mon Sep 17 00:00:00 2001
From: Moli <13026959681@163.com>
Date: 星期日, 03 五月 2026 13:30:40 +0800
Subject: [PATCH] bug修复
---
src/Moli.Desktop/Layout/Geometry.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/Moli.Desktop/Layout/Geometry.cs b/src/Moli.Desktop/Layout/Geometry.cs
index b870b32..9890e19 100644
--- a/src/Moli.Desktop/Layout/Geometry.cs
+++ b/src/Moli.Desktop/Layout/Geometry.cs
@@ -23,6 +23,13 @@
public override string ToString() => Value;
}
+public enum DisplayPriority
+{
+ DesktopLayer,
+ IconLayer,
+ AppLayer
+}
+
public sealed record WidgetRuntimeState
{
public required WidgetInstanceId InstanceId { get; init; }
@@ -33,6 +40,7 @@
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
@@ -44,4 +52,5 @@
public double? Opacity { get; init; }
public bool? ClickThrough { get; init; }
public double? Scale { get; init; }
+ public DisplayPriority? DisplayPriority { get; init; }
}
--
Gitblit v1.9.1