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