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

Gradient progress bar #4774

Merged
merged 7 commits into from
Jul 18, 2024
Merged

Gradient progress bar #4774

merged 7 commits into from
Jul 18, 2024

Conversation

willmcgugan
Copy link
Collaborator

@willmcgugan willmcgugan commented Jul 18, 2024

Adds gradient to progress bars. Also optimizes the color.Gradient class.

Screen.Recording.2024-07-18.at.14.17.05.mov

@willmcgugan willmcgugan changed the title gradients and tests Gradient progress bar Jul 18, 2024
Comment on lines +25 to +26
with Center():
with Middle():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit of an aside, but I often find myself defining a CenterMiddle.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a bad idea.

src/textual/widgets/_progress_bar.py Outdated Show resolved Hide resolved
src/textual/renderables/bar.py Outdated Show resolved Hide resolved
@willmcgugan willmcgugan merged commit 35409c3 into main Jul 18, 2024
20 checks passed
@willmcgugan willmcgugan deleted the gradient-bar branch July 18, 2024 15:05
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.

2 participants