Skip to content
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

fix(gauge): fix gauge widget colors #572

Merged
merged 1 commit into from
Oct 19, 2023
Merged

fix(gauge): fix gauge widget colors #572

merged 1 commit into from
Oct 19, 2023

Conversation

joshka
Copy link
Member

@joshka joshka commented Oct 18, 2023

The background colors of the gauge had a workaround for the issue we had
with VHS / TTYD rendering the background color of the gauge. This
workaround is no longer necessary in the updated versions of VHS / TTYD.

Fixes #501

The background colors of the gauge had a workaround for the issue we had
with VHS / TTYD rendering the background color of the gauge. This
workaround is no longer necessary in the updated versions of VHS / TTYD.

Fixes #501
@joshka
Copy link
Member Author

joshka commented Oct 18, 2023

gauge.gif

@joshka
Copy link
Member Author

joshka commented Oct 18, 2023

Ping @LeoniePhiline

Can you please test this in your application using a patch override in your cargo.toml:

[patch.crates-io]
ratatui = { git = "https://github.com/ratatui-org/ratatui.git", branch = "fix-gauge" }

Note that if you're using the non-alpha version of ratatui there may be a few other unreleased breaking changes. See https://github.com/ratatui-org/ratatui/blob/main/BREAKING-CHANGES.md for more details.

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #572 (077bd81) into main (3a57e76) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #572   +/-   ##
=======================================
  Coverage   89.51%   89.51%           
=======================================
  Files          41       41           
  Lines       11557    11557           
=======================================
  Hits        10345    10345           
  Misses       1212     1212           
Files Coverage Δ
src/widgets/gauge.rs 92.42% <100.00%> (ø)

@LeoniePhiline
Copy link

Thanks for pinging me! Unfortunately I'm currently ill and cannot perform any tests.

@joshka
Copy link
Member Author

joshka commented Oct 18, 2023

Thanks for pinging me! Unfortunately I'm currently ill and cannot perform any tests.

No problem - get well soon

@joshka joshka merged commit 0c52ff4 into main Oct 19, 2023
33 checks passed
@joshka joshka deleted the fix-gauge branch October 19, 2023 11:29
IlyaSelivanov pushed a commit to IlyaSelivanov/ratatui that referenced this pull request Oct 19, 2023
The background colors of the gauge had a workaround for the issue we had
with VHS / TTYD rendering the background color of the gauge. This
workaround is no longer necessary in the updated versions of VHS / TTYD.

Fixes ratatui#501
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.

Gauge: renders percentage inverted since ratatui 0.22.0
3 participants