基于WebView2实现的Win11桌面框架,利用插件自定义
Moli
2026-05-03 2fd6e68025d4b987cfde52b8402038ca34116876
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; }
}