taffybar: position workspace number labels inside squircle pills

Use padding on the workspace-label (not margin on the overlay-box,
which GTK overlays ignore) to inset the number into the pill area.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 20:14:41 -08:00
committed by Kat Huang
parent 59af32457b
commit 792a86d44a

View File

@@ -169,22 +169,16 @@
.workspaces .overlay-box { .workspaces .overlay-box {
transition: background-color .2s, border-color .2s; transition: background-color .2s, border-color .2s;
/* Offset from the bottom-left anchor into the pill area.
Increase margin-left to push right, margin-bottom to push up. */
margin-left: 6px;
margin-top: 4px;
background-color: transparent; background-color: transparent;
border: none; border: none;
margin: 0px;
padding: 0px; padding: 0px;
} }
.workspaces .overlay-box .workspace-label { .workspaces .overlay-box .workspace-label {
/* GtkLabel often doesn't paint its own background, so style the eventbox and
keep the label itself transparent. */
background-color: transparent; background-color: transparent;
border: none; border: none;
padding: 0px; padding: 2px 5px 5px 12px;
color: rgba(255, 255, 255, 0.92); color: rgba(255, 255, 255, 0.92);
} }