From f670f88804f83d345923a70fa76fc0d87da1e502 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Sat, 13 Sep 2025 10:25:50 +0200 Subject: [PATCH] NPanel: add margin if bar is floating (except for SettingsPanel) --- Widgets/NPanel.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Widgets/NPanel.qml b/Widgets/NPanel.qml index a115c2b..9b1904e 100644 --- a/Widgets/NPanel.qml +++ b/Widgets/NPanel.qml @@ -184,8 +184,8 @@ Loader { anchors.left: true anchors.right: true anchors.bottom: true - margins.top: (barIsVisible && !barAtBottom) ? barHeight : 0 - margins.bottom: (barIsVisible && barAtBottom) ? barHeight : 0 + margins.top: (barIsVisible && !barAtBottom) ? (barHeight + ((Settings.data.bar.floating && !panelAnchorVerticalCenter) ? Settings.data.bar.marginTop : 0)) : 0 + margins.bottom: (barIsVisible && barAtBottom) ? (barHeight + ((Settings.data.bar.floating && !panelAnchorVerticalCenter) ? Settings.data.bar.marginBottom : 0)) : 0 // Close any panel with Esc without requiring focus Shortcut {