From 4a86b66d06dda958f8d136234225ed160604a61a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 21 Jun 2025 22:47:13 +1000 Subject: feat: window info panel Also disable reload popup --- modules/drawers/Backgrounds.qml | 4 ++-- modules/drawers/Panels.qml | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'modules/drawers') diff --git a/modules/drawers/Backgrounds.qml b/modules/drawers/Backgrounds.qml index 46ca477..b7e3d39 100644 --- a/modules/drawers/Backgrounds.qml +++ b/modules/drawers/Backgrounds.qml @@ -60,7 +60,7 @@ Shape { wrapper: panels.popouts invertBottomRounding: wrapper.y + wrapper.height + 1 >= root.height - startX: 0 - startY: wrapper.y - rounding + startX: wrapper.x + startY: wrapper.y - rounding * sideRounding } } 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; -- cgit v1.2.3-freya