From d23adce11cabcd9ab548d085fe52ba35efebcd8c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 5 Jan 2025 08:58:29 +0530 Subject: [PATCH] User nerd font symbols for progress as they are guaranteed to exist --- kitty/tab_bar.py | 6 +++--- kitty/window.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kitty/tab_bar.py b/kitty/tab_bar.py index db425b3c6b..96450633b1 100644 --- a/kitty/tab_bar.py +++ b/kitty/tab_bar.py @@ -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 diff --git a/kitty/window.py b/kitty/window.py index 9f87f82940..92e9f42b5e 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -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,