Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

fix(widgets/gauge): apply label style and avoid overflow on large labels #494

Merged
merged 2 commits into from Jun 16, 2021

Conversation

fdehau
Copy link
Owner

@fdehau fdehau commented Jun 16, 2021

Description

Refactor the gauge render logic to fix two bugs:

  • the label style was not applied
  • using a label larger than the gauge width triggered a panic

Close #480

Testing guidelines

  • Two integration tests have been added
  • Run cargo run --example gauge

Checklist

@fdehau fdehau merged commit 8da5f74 into master Jun 16, 2021
@fdehau fdehau deleted the gauge-label branch June 16, 2021 18:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Styling gauge label with foreground / background color has no effect
1 participant