Skip to content

feat(appearance): add bar padding - #971

Merged
MalpenZibo merged 1 commit into
mainfrom
feat/bar-padding
Sep 17, 2026
Merged

MalpenZibo merged 1 commit into
mainfrom
feat/bar-padding

Conversation

@MalpenZibo

@MalpenZibo MalpenZibo commented Sep 17, 2026

Copy link
Copy Markdown
Owner

No description provided.

The bar had a hardcoded `[xxs, xxs]` padding applied only to the
transparent surface, so the inset was neither configurable nor available
to solid bars. #915 removes that padding in favour of `margin`, which
leaves a bar with no configuration sitting flush against the screen edge.

`margin` is not a substitute for it. It moves the layer surface itself,
so the gap belongs to the compositor: a solid bar stops spanning the full
width, and the bar no longer receives clicks or scroll events at the
screen edge, which is the easiest place to aim at. Padding keeps the
surface where it is and insets only the content, so the solid background
still reaches both edges and the whole bar stays reachable.

Add `[appearance.bar].padding` with the same CSS shorthand and value
types as `margin`, defaulting to `xxs`. `HEIGHT` now describes the
content, and the surface is the content plus the vertical padding, so the
default reproduces the current transparent height exactly. Padding is
drawn inside the surface and therefore scales with `scale_factor`, unlike
`margin`, which the compositor applies in screen pixels.

Solid bars grow by 8px at the default, which is the intended change: the
content is no longer flush against the screen edge.
@MalpenZibo
MalpenZibo merged commit c09de98 into main Sep 17, 2026
5 checks passed
@MalpenZibo
MalpenZibo deleted the feat/bar-padding branch September 17, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant