feat(界面设计): 全界面材质适配
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-31 12:32:13 +08:00
1 parent d5533841c0
commit 89efb839ac
7 files changed
+60 -40

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
const preference = matchMedia("(prefers-color-scheme: dark)");
const key = "ofdgo.theme";
let mode = root.dataset.themeMode || "system";
let material = root.dataset.titlebarChoice || "acrylic";
let material = root.dataset.windowChoice || "acrylic";
let host = null, report = null, pending = Promise.resolve(), revision = 0, committed = null;
if (!root.dataset.themeMode) {
try { mode = localStorage.getItem(key) || "system"; } catch {}
@@ -57,7 +57,7 @@
window.ofdgoTheme = {set, flush, connect(value, onError) {
host = value;
report = onError;
const materials = (root.dataset.titlebarMaterials || "").split(",");
const materials = (root.dataset.windowMaterials || "").split(",");
if (host && materials.length > 1) {
document.querySelector(".appearance-material").hidden = false;
for (const button of document.querySelectorAll("[data-material-choice]")) {