Skip to content

Add progress bar background to wireplumber items - #736

Open
kontura wants to merge 3 commits into
abenz1267:masterfrom
kontura:layoutmanager
Open

Add progress bar background to wireplumber items#736
kontura wants to merge 3 commits into
abenz1267:masterfrom
kontura:layoutmanager

Conversation

@kontura

@kontura kontura commented Aug 10, 2026

Copy link
Copy Markdown

Possibly it could also be used for Bluetooth items to indicate battery level.

Using custom PercentageLayoutManager seems to be the only viable
approach that allows drawing the progress bar in the background while it
still being fully stylable by css.

I have tried using GtkProgressBar but it is hard to ensure it fully
stretches in the backround.
Using GtkDrawingArea is not really stylable by css.
Using only a GtkBox is also not possible because it doesn't support
setting width by percentage.
We are parsing the percentage from the subtext but perhaps it would be
better to pass it separately from elephant.
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.

1 participant