mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 18:15:41 +00:00
BarContent: better margins-anchoring management
This commit is contained in:
@@ -44,9 +44,18 @@ PanelWindow {
|
||||
left: barPosition === "left" || !barIsVertical
|
||||
right: barPosition === "right" || !barIsVertical
|
||||
}
|
||||
// Set to FULL screen dimensions - margins will reduce the actual window size
|
||||
implicitWidth: (barIsVertical ? (Style.barHeight + 1) : barWindow.screen.width) + barMarginH
|
||||
implicitHeight: (barIsVertical ? barWindow.screen.height : Style.barHeight) + barMarginV
|
||||
|
||||
// Handle floating margins
|
||||
margins {
|
||||
top: barPosition === "top" || barIsVertical ? barMarginV : 0
|
||||
bottom: barPosition === "bottom" || barIsVertical ? barMarginV : 0
|
||||
left: barPosition === "left" || !barIsVertical ? barMarginH : 0
|
||||
right: barPosition === "right" || !barIsVertical ? barMarginH : 0
|
||||
}
|
||||
|
||||
// Set a tight window size
|
||||
implicitWidth: barIsVertical ? Style.barHeight : barWindow.screen.width
|
||||
implicitHeight: barIsVertical ? barWindow.screen.height : Style.barHeight
|
||||
|
||||
// Bar content - just the widgets, no background
|
||||
Bar {
|
||||
|
||||
Reference in New Issue
Block a user