-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(LineGauge): allow LineGauge background styles #565
feat(LineGauge): allow LineGauge background styles #565
Conversation
Very nice, I too think the name |
Oh I like that! We can mark |
329a487
to
ff3a293
Compare
And saw your screenshot above, it's great. Hope the new API design did not slow you down, it is always hard to give backward compatibility. |
Another +1 to filled / unfilled from me. The remaining tasks on this are something like:
|
ff3a293
to
38635d1
Compare
Thank you for opening this pull request! We require commits to be signed and it looks like this PR contains unsigned commits. Get help in the CONTRIBUTING.md |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #565 +/- ##
=====================================
Coverage 94.3% 94.3%
=====================================
Files 61 61
Lines 14767 14777 +10
=====================================
+ Hits 13926 13937 +11
+ Misses 841 840 -1 ☔ View full report in Codecov by Sentry. |
af6f43b
to
eb1fd2c
Compare
eb1fd2c
to
e28be44
Compare
Hey all! :) It took me some time but finally I got around to wrapping everything up. I tried to check all of the boxes on the todo list you provided @joshka
I'm not 100% if vhs demo will be recorded on the main branch in the repository itself or should I do it from my computer and somehow upload it?
and I don't think that the path is quite right. Shouldn't it be |
ugh - Figured I'd try hitting the "Sync Changes" button in VSCode to let it push things - that was a mistake! What a useless button. |
70a4db6
to
7815c5d
Compare
LineGauge can be styled with regard to the line itself. There was no option to style the background behind the line. This commit adds this feature by adding two fields: filled_style and unfilled style. The filled style has an ability to define foreground color (the line itself) as well background color (the background behind the filled line). unfilled_style works accordingly. gauge_style was left intact to maintain backwards compatiblity Implements ratatui-org#424
7815c5d
to
7be7dc8
Compare
So happy it got merged! 🎉 |
Description
LineGauge can be styled with regard to the line itself. There was no option to style the background behind the line. There was a community issue request to add such a feature.
This PR deprecates
gauge_style
in favor offilled_style
andunfilled_style
which can have it's foreground and background styled.Demo
cargo run --example=line_gauge --features=crossterm
Demo
line_gauge_demo.mov
Issue link
Implements ratatui-org#424