NPanel: add margin if bar is floating (except for SettingsPanel)

This commit is contained in:
Ly-sec 2025-09-13 10:25:50 +02:00
parent 814cb774a6
commit f670f88804

View file

@ -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 {