User nerd font symbols for progress as they are guaranteed to exist

This commit is contained in:
Kovid Goyal
2025-01-05 08:58:29 +05:30
parent 9b9b313e77
commit d23adce11c
2 changed files with 4 additions and 4 deletions

View File

@@ -232,14 +232,14 @@ class TabAccessor:
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