mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 23:42:16 +08:00
1 parent
26bad97aab
commit
d4274f48c2
5 files changed
+27
-15
No files matched your search
@@ -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`);
|
||||
|
||||
Reference in new issue
Block a user