feat(界面设计): 同步材质名称引用
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-31 10:46:02 +08:00
1 parent cd191ac679
commit 2abc0b878c
6 files changed
+15 -7

No files matched your search

+8 -1
View File
@@ -30,6 +30,13 @@
report(error);
});
}
async function flush() {
let current;
do {
current = pending;
await current;
} while (current !== pending);
}
function set(value) {
mode = value;
apply();
@@ -48,7 +55,7 @@
mode = ["light", "dark"].includes(event.newValue) ? event.newValue : "system";
apply();
});
window.ofdgoTheme = {set, connect(value, onError) {
window.ofdgoTheme = {set, flush, connect(value, onError) {
host = value;
report = onError;
const select = document.querySelector("#titleBarMaterial");