You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This issue is reserved for the EuroPython 2023 sprint. If you are not participating in the sprint, please refrain from working on this issue. Thanks!)
Currently, the ProgressBar widget can have its colours changed, but the bar style is always the same.
This issue concerns itself with adding style variations to the actual bar.
Add the following styles:
default (the current one)
thick (use taller block characters)
and any other(s) you can think of!
To change the style of the progress bar, you will need to change the characters that are used inside textual.renderables.bar.py::Bar.__rich_console__.
The style for the progress bar can be selected via a keyword-only parameter variant upon instantiation, like ProgressBar(variant="thick"), akin to Button.
The progress bar variant should also be exposed as a reactive attributevariant.
Good luck and have fun!
The text was updated successfully, but these errors were encountered:
(This issue is reserved for the EuroPython 2023 sprint. If you are not participating in the sprint, please refrain from working on this issue. Thanks!)
Currently, the
ProgressBar
widget can have its colours changed, but the bar style is always the same.This issue concerns itself with adding style variations to the actual bar.
Add the following styles:
default
(the current one)thick
(use taller block characters)To change the style of the progress bar, you will need to change the characters that are used inside
textual.renderables.bar.py::Bar.__rich_console__
.The style for the progress bar can be selected via a keyword-only parameter
variant
upon instantiation, likeProgressBar(variant="thick")
, akin toButton
.The progress bar variant should also be exposed as a reactive attribute
variant
.Good luck and have fun!
The text was updated successfully, but these errors were encountered: