Skip to content

Commit

Permalink
User nerd font symbols for progress as they are guaranteed to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jan 5, 2025
1 parent 9b9b313 commit d23adce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions kitty/tab_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ def last_focused_progress_percent(self) -> str:
if w is None:
return ''
if w.progress.state is ProgressState.error:
return '\u26a0\ufe0f '
return ' '
if w.progress.state is ProgressState.unset:
return ''
if w.progress.state is ProgressState.indeterminate:
return '🔄 '
return ' '
p = f'{w.progress.percent}% '
if w.progress.state is ProgressState.paused:
return f' {p}'
return f' {p}'
return p

@property
Expand Down
2 changes: 1 addition & 1 deletion kitty/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@
wakeup_main_loop,
)
from .keys import keyboard_mode_name, mod_mask
from .progress import Progress
from .rgb import to_color
from .terminfo import get_capabilities
from .types import MouseEvent, OverlayType, WindowGeometry, ac, run_once
from .typing import BossType, ChildType, EdgeLiteral, TabType, TypedDict
from .progress import Progress
from .utils import (
color_as_int,
docs_url,
Expand Down

0 comments on commit d23adce

Please sign in to comment.