quickshell: corner-symmetric 12px insets for bar content

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-06-11 21:16:27 +01:00
parent a6c38708fc
commit 7558fe0fc5

View file

@ -607,10 +607,11 @@ in
// (stylix); the pill matches hyprland's active border accent. // (stylix); the pill matches hyprland's active border accent.
Row { Row {
anchors.left: parent.left anchors.left: parent.left
// Align the first dot's VISIBLE edge with the window // Corner symmetry: the dots sit 12px from the screen's
// column below (gaps_out.left = frameWidth + 12); each // top edge (centered in the 30px bar), so the first dot's
// cell pads its dot by 3px, hence the -3. // VISIBLE edge sits 12px from the left edge too. Cells
anchors.leftMargin: Theme.frameWidth + 12 - 3 // pad their dots by 3px, hence the -3.
anchors.leftMargin: 12 - 3
anchors.verticalCenter: barBgRect.verticalCenter anchors.verticalCenter: barBgRect.verticalCenter
spacing: 4 spacing: 4
@ -682,10 +683,10 @@ in
// Right network, battery, tray // Right network, battery, tray
Row { Row {
anchors.right: parent.right anchors.right: parent.right
// Mirror the left side: last tray icon's VISIBLE edge on // Corner symmetry like the dots: last tray icon's VISIBLE
// the window column (frameWidth + 12); tray cells pad // edge 12px from the right screen edge; tray cells pad
// their 16px icons by 4px, hence the -4. // their 16px icons by 4px, hence the -4.
anchors.rightMargin: Theme.frameWidth + 12 - 4 anchors.rightMargin: 12 - 4
anchors.verticalCenter: barBgRect.verticalCenter anchors.verticalCenter: barBgRect.verticalCenter
spacing: 10 spacing: 10