Use arrow3 spinner with 'Running...' text for better visibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -206,10 +206,11 @@ SelectionList {
|
||||
|
||||
#ol-spinner {
|
||||
width: auto;
|
||||
min-width: 5;
|
||||
min-width: 20;
|
||||
height: 3;
|
||||
margin: 0 0 0 2;
|
||||
content-align: center middle;
|
||||
margin: 0 0 0 1;
|
||||
content-align: left middle;
|
||||
color: #00cc00;
|
||||
}
|
||||
|
||||
#ol-log {
|
||||
|
||||
@@ -14,7 +14,7 @@ class SpinnerWidget(Static):
|
||||
|
||||
def __init__(self, style: str = "dots", **kwargs):
|
||||
super().__init__("", **kwargs)
|
||||
self._spinner = RichSpinner(style)
|
||||
self._spinner = RichSpinner(style, text=" Running...")
|
||||
self._timer: Timer | None = None
|
||||
|
||||
def on_mount(self) -> None:
|
||||
@@ -45,7 +45,7 @@ class OperationLog(ModalScreen[None]):
|
||||
yield RichLog(id="ol-log", wrap=True, highlight=True, markup=True)
|
||||
with Horizontal(id="ol-footer"):
|
||||
yield Button("Close", variant="primary", id="ol-close")
|
||||
yield SpinnerWidget(id="ol-spinner")
|
||||
yield SpinnerWidget("arrow3", id="ol-spinner")
|
||||
|
||||
def on_mount(self) -> None:
|
||||
# Flush any buffered writes
|
||||
|
||||
Reference in New Issue
Block a user