mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-31 22:04:06 +08:00
1 parent
c2d390e945
commit
cd191ac679
8 files changed
+98
-18
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);
|
||||
document.documentElement.toggleAttribute("data-titlebar-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