mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Updating progress bar colors
This commit is contained in:
@@ -16,9 +16,9 @@ from textual.widgets import (
|
||||
Label,
|
||||
ListItem,
|
||||
ListView,
|
||||
LoadingIndicator,
|
||||
MarkdownViewer,
|
||||
OptionList,
|
||||
ProgressBar,
|
||||
RadioSet,
|
||||
RichLog,
|
||||
Select,
|
||||
@@ -267,7 +267,9 @@ class ChangingThemeApp(App[None]):
|
||||
with Collapsible(title="An interesting story."):
|
||||
yield Label("Interesting but verbose story.")
|
||||
|
||||
yield LoadingIndicator()
|
||||
progress = ProgressBar(total=100)
|
||||
progress.advance(70)
|
||||
yield progress
|
||||
|
||||
rich_log = RichLog(highlight=True, markup=True)
|
||||
rich_log.write("Hello, world!")
|
||||
|
||||
@@ -102,8 +102,6 @@ BUILTIN_THEMES: dict[str, Theme] = {
|
||||
"block-cursor-foreground": "#2E3440",
|
||||
"block-cursor-text-style": "none",
|
||||
"footer-key-foreground": "#88C0D0",
|
||||
"input-cursor-foreground": "#2E3440",
|
||||
"input-cursor-background": "#88C0D0",
|
||||
"input-selection-background": "#81a1c1 35%",
|
||||
},
|
||||
),
|
||||
|
||||
@@ -44,16 +44,16 @@ class Bar(Widget, can_focus=False):
|
||||
height: 1;
|
||||
|
||||
&> .bar--bar {
|
||||
color: $warning;
|
||||
background: $foreground 10%;
|
||||
color: $primary;
|
||||
background: $surface;
|
||||
}
|
||||
&> .bar--indeterminate {
|
||||
color: $error;
|
||||
background: $foreground 10%;
|
||||
background: $surface;
|
||||
}
|
||||
&> .bar--complete {
|
||||
color: $success;
|
||||
background: $foreground 10%;
|
||||
background: $surface;
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user