diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-21 22:47:13 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-21 22:47:13 +1000 |
| commit | 4a86b66d06dda958f8d136234225ed160604a61a (patch) | |
| tree | 8dab0f695e035f26dccc2089ee4636c2b7b7ee2a /modules/drawers/Panels.qml | |
| parent | popouts: convert to layout (diff) | |
| download | caelestia-shell-4a86b66d06dda958f8d136234225ed160604a61a.tar.gz caelestia-shell-4a86b66d06dda958f8d136234225ed160604a61a.tar.bz2 caelestia-shell-4a86b66d06dda958f8d136234225ed160604a61a.zip | |
feat: window info panel
Also disable reload popup
Diffstat (limited to 'modules/drawers/Panels.qml')
| -rw-r--r-- | modules/drawers/Panels.qml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/drawers/Panels.qml b/modules/drawers/Panels.qml index a422fcc..5b2229c 100644 --- a/modules/drawers/Panels.qml +++ b/modules/drawers/Panels.qml @@ -80,11 +80,13 @@ Item { screen: root.screen - anchors.left: parent.left - anchors.verticalCenter: parent.top - anchors.verticalCenterOffset: { - const off = root.popouts.currentCenter - Config.border.thickness; - const diff = root.height - Math.floor(off + implicitHeight / 2); + x: isDetached ? (root.width - nonAnimWidth) / 2 : 0 + y: { + if (isDetached) + return (root.height - nonAnimHeight) / 2; + + const off = currentCenter - Config.border.thickness - nonAnimHeight / 2; + const diff = root.height - Math.floor(off + nonAnimHeight); if (diff < 0) return off + diff; return off; |