From 93cbdb7080c8fcbeea112dd4b6af888aa5103b91 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 13 Feb 2021 12:50:40 -0500 Subject: [PATCH] Implement progress_char config option --- config.py | 5 ----- lightcards/display.py | 7 ++++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/config.py b/config.py index 566ebcf..e12faa3 100644 --- a/config.py +++ b/config.py @@ -15,12 +15,7 @@ default_view = 1 ############################################################################### # APPEARANCE -disp_progress = True progress_char = "»" -disp_sidebar = True -disp_bar = True - -bar_sections = ["starred_status", "starred_count", "side", "view"] highlight_color = "green" starred_color = "yellow" diff --git a/lightcards/display.py b/lightcards/display.py index f03620c..f5f5f6c 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -351,10 +351,11 @@ class Display: - 1 ) ): - # TODO: Use the variying width unicode block characters to make a - # super accurate bar self.win.addch( - height + 1, i + len(progress), "»", curses.color_pair(1) + height + 1, + i + len(progress), + self.config["progress_char"], + curses.color_pair(1), ) def wrap_width(self): -- 2.39.2