Skip to content

Feat/replace style with margin padding background#614

Draft
MalpenZibo wants to merge 5 commits intomainfrom
feat/replace-style-with-margin-padding-background
Draft

Feat/replace style with margin padding background#614
MalpenZibo wants to merge 5 commits intomainfrom
feat/replace-style-with-margin-padding-background

Conversation

@MalpenZibo
Copy link
Copy Markdown
Owner

@MalpenZibo MalpenZibo commented Apr 9, 2026

Close #615

Dropping gradient style support?
it's used by someone?

…options

Remove the AppearanceStyle enum (Islands/Solid/Gradient) and replace it
with three independent config options: margin (outside bar margin via
Wayland layer-shell), padding (internal content padding), and background
(None, Palette, custom hex color, or gradient). Module backgrounds are
derived from the bar background — transparent bar gets individual rounded
module containers (islands look), otherwise modules have no background.
Remove the gradient variant from BarBackground and related types
(GradientSpec, GradientPalette). The gradient needs more design work
to be visually effective. Background now supports: None, Palette, or
a custom hex color.
…mically

Remove the const HEIGHT = 34 and the gradient background option. Bar
height is now computed from font_size.xl + module padding + configured
bar padding, so it automatically adapts when padding changes. The
exclusive zone and surface size are derived from this computed height.
@MalpenZibo MalpenZibo marked this pull request as draft April 9, 2026 14:52
Add From<&AppearanceColor> for Color and a hex_to_color helper function
to replace get_base(). Rename get_text() to text(), get_weak_pair() to
weak_pair(), get_strong_pair() to strong_pair() for idiomatic Rust
naming. Addresses review feedback from PR #574.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace style config

1 participant