mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-31 19:52:48 +08:00
1 parent
d5533841c0
commit
89efb839ac
7 files changed
+60
-40
No files matched your search
@@ -2647,7 +2647,7 @@ function isForegroundDocument(tab) {
|
||||
function applyTitleBarInfo(info) {
|
||||
if (!info || !info.height) return;
|
||||
workspace.titleBarReady = true;
|
||||
document.documentElement.toggleAttribute("data-titlebar-material", info.material === 1 || info.material === 2);
|
||||
document.documentElement.toggleAttribute("data-window-material", info.material === 1 || info.material === 2);
|
||||
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