From: Armaan Bhojwani Date: Sat, 13 Feb 2021 17:50:40 +0000 (-0500) Subject: Implement progress_char config option X-Git-Tag: v0.7.0~32 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=93cbdb7080c8fcbeea112dd4b6af888aa5103b91 Implement progress_char config option --- 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):