Skip to content

Commit

Permalink
Reverting progress bar - not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 28, 2024
1 parent cd9ed5d commit 9ce4792
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
18 changes: 0 additions & 18 deletions src/textual/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,24 +327,6 @@ def luminosity_range(spread: float) -> Iterable[tuple[str, float]]:
colors["markdown-h6-background"] = get("markdown-h6-background", "transparent")
colors["markdown-h6-text-style"] = get("markdown-h6-text-style", "bold")

# Progress bar colors
colors["progress-bar-color"] = get("progress-bar-bar-color", primary.hex)
colors["progress-bar-background"] = get(
"progress-bar-bar-background", surface.hex
)
colors["progress-bar-complete-color"] = get(
"progress-bar-complete-color", success.hex
)
colors["progress-bar-complete-background"] = get(
"progress-bar-complete-background", surface.hex
)
colors["progress-bar-indeterminate-color"] = get(
"progress-bar-indeterminate-color", error.hex
)
colors["progress-bar-indeterminate-background"] = get(
"progress-bar-indeterminate-background", surface.hex
)

return colors


Expand Down
12 changes: 6 additions & 6 deletions src/textual/widgets/_progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ class Bar(Widget, can_focus=False):
height: 1;
&> .bar--bar {
color: $progress-bar-color;
background: $progress-bar-background;
color: $primary;
background: $surface;
}
&> .bar--indeterminate {
color: $progress-bar-indeterminate-color;
background: $progress-bar-indeterminate-background;
color: $error;
background: $surface;
}
&> .bar--complete {
color: $progress-bar-complete-color;
background: $progress-bar-complete-background;
color: $success;
background: $surface;
}
}
"""
Expand Down

0 comments on commit 9ce4792

Please sign in to comment.