基于WebView2实现的Win11桌面框架,利用插件自定义
Moli
2026-05-04 b3bde921167ee0a7dc21cf7e3d642840a0fcc11e
docs/data/configuration-and-storage.md
@@ -123,7 +123,8 @@
      "isLocked": false,
      "opacity": 1,
      "clickThrough": true,
      "scale": 1
      "scale": 1,
      "displayLayer": "desktop"
    }
  ]
}
@@ -160,7 +161,8 @@
    "locked": false,
    "clickThrough": true,
    "opacity": 1,
    "scale": 1
    "scale": 1,
    "displayLayer": "desktop"
  },
  "config": {}
}
@@ -179,6 +181,7 @@
| `defaultLayout.height` | `40..2160` |
| `defaultLayout.opacity` | `0.1..1.0` |
| `defaultLayout.scale` | `0.5..3.0` |
| `defaultLayout.displayLayer` | `desktop` / `normal` / `app-top` / `global-top` |
本地入口必须留在插件目录内,不能通过相对路径逃逸到插件根目录外。
@@ -189,6 +192,7 @@
- `sample.wallpaper`
- `sample.clock`
- `sample.system-info`
- `sample.audio-visualizer`
安装行为:
@@ -196,6 +200,7 @@
- 只补缺失文件,不覆盖用户已存在文件。
- 若 `plugins.json` 中没有对应记录,则写入 `enabled`。
- 对 widget 插件,如果 `layout.json` 中没有对应布局实例,则根据 manifest `defaultLayout` 创建 `<pluginId>.default` 实例。
- `sample.audio-visualizer` 会按主屏尺寸生成全宽布局,默认高度不超过屏幕高度 `25%`,纵向位置约为屏幕高度 `2/3`。
`sample.webview-test` 保留为开发/手工验证 fixture,不属于默认启用样例。
@@ -218,4 +223,3 @@
- `schemaVersion` 作为升级入口。
- 插件 manifest 与用户布局分离,避免插件升级覆盖用户布局。
- API 和 UI 通过 `IDesktopRuntime` 修改状态,不直接写配置文件。