config: lock osds spacing
This commit is contained in:
parent
5f2febe534
commit
31056d48bd
2 changed files with 4 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ export const osds = {
|
||||||
showValue: true,
|
showValue: true,
|
||||||
},
|
},
|
||||||
lock: {
|
lock: {
|
||||||
|
spacing: 5,
|
||||||
caps: {
|
caps: {
|
||||||
hideDelay: 1000,
|
hideDelay: 1000,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -294,7 +294,9 @@ class LockOsd extends Widget.Window {
|
||||||
if (window !== this && window instanceof LockOsd) {
|
if (window !== this && window instanceof LockOsd) {
|
||||||
const child = this.get_child();
|
const child = this.get_child();
|
||||||
if (!child) return;
|
if (!child) return;
|
||||||
this[right ? "marginLeft" : "marginRight"] = window.visible ? child.get_preferred_width()[1] + 5 : 0;
|
this[right ? "marginLeft" : "marginRight"] = window.visible
|
||||||
|
? child.get_preferred_width()[1] + config.lock.spacing
|
||||||
|
: 0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue