From 8289539dd89cb9ee7dc47751fbfb68337a43935b Mon Sep 17 00:00:00 2001 From: ch1ka <164895536+ch1kulya@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:47:47 +0300 Subject: [PATCH 1/2] bug fix --- src/utils/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/interface.py b/src/utils/interface.py index 35f5a18..106e5dc 100644 --- a/src/utils/interface.py +++ b/src/utils/interface.py @@ -244,8 +244,8 @@ def videos_menu(self) -> None: duration = f"{round(video['duration_seconds'] / 60)} min" watched_videos = [dict(watched_video) for watched_video in self.manager.watched] if any(video["id"] == watched_video["id"] for watched_video in watched_videos): - color = "grey" - color_time = "grey" + color = "dim" + color_time = "dim" elif delta.days == 0: color_time = "yellow" elif delta.days == 1: From be9324b0d2ed9cf04bccf36d243cb370bd9e7701 Mon Sep 17 00:00:00 2001 From: ch1ka <164895536+ch1kulya@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:49:50 +0300 Subject: [PATCH 2/2] bug fix --- src/utils/interface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/interface.py b/src/utils/interface.py index 106e5dc..1fae8c9 100644 --- a/src/utils/interface.py +++ b/src/utils/interface.py @@ -127,6 +127,7 @@ def gradient_color(self, text: str, start_color: tuple, end_color: tuple) -> str g = int(start_color[1] + (end_color[1] - start_color[1]) * i / len(text)) b = int(start_color[2] + (end_color[2] - start_color[2]) * i / len(text)) result += f"\033[38;2;{r};{g};{b}m{char}" + result += "\033[0m" return result def format_time_ago(self, delta: timedelta) -> str: