Styles: support levelbar - #1040
Open
danirabbit wants to merge 10 commits into
Open
danirabbit wants to merge 10 commits into
danirabbit wants to merge 10 commits into
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
lenemter
reviewed
Sep 12, 2026
Member
Author
|
@lenemter color fixed! Can you explain what you mean about the minimum width/height? We have to set some minimums or it would be 0 width/height, but otherwise what you see in the demo is filling the box size:
|
wpkelso
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



My reasoning behind levelbar sizing is that currently we use it for things like disk fullness, battery charge, steps in a paged view etc.
For vertical discrete levelbars, the only use of this I've seen is for audio levels, so that's why I did this design
By default GTK assigns some of its own internal style classes, but I don't like having developers put an arbitrary string here, so I added support for named constants
I didn't include accent color here because your accent can be red or green or yellow