feat(界面设计): 启用云母标题栏
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-30 22:06:59 +08:00
1 parent 26bad97aab
commit d4274f48c2
5 files changed
+27 -15

No files matched your search

+6
View File
@@ -198,6 +198,12 @@
user-select: none;
}
:root[data-titlebar-material],
:root[data-titlebar-material] body,
:root[data-titlebar-material] .document-titlebar {
background: transparent;
}
.document-titlebar::before {
content: "";
position: absolute;
+1
View File
@@ -2649,6 +2649,7 @@ function isForegroundDocument(tab) {
function applyTitleBarInfo(info) {
if (!info || !info.height) return;
workspace.titleBarReady = true;
document.documentElement.toggleAttribute("data-titlebar-material", info.material === 1);
document.body.style.setProperty("--titlebar-height", `${info.height}px`);
el.documentTitleBar.style.setProperty("--titlebar-left", `${info.left}px`);
el.documentTitleBar.style.setProperty("--titlebar-right", `${info.right}px`);