]> git.armaanb.net Git - lightcards.git/commitdiff
Implement progress_char config option
authorArmaan Bhojwani <me@armaanb.net>
Sat, 13 Feb 2021 17:50:40 +0000 (12:50 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 13 Feb 2021 17:56:59 +0000 (12:56 -0500)
config.py
lightcards/display.py

index 566ebcfdf3c88421f4d22818bbaf1c41202ef016..e12faa3f25da77544242624193936d3dc877a240 100644 (file)
--- a/config.py
+++ b/config.py
@@ -15,12 +15,7 @@ default_view = 1
 ###############################################################################
 # APPEARANCE
 
 ###############################################################################
 # APPEARANCE
 
-disp_progress = True
 progress_char = "»"
 progress_char = "»"
-disp_sidebar = True
-disp_bar = True
-
-bar_sections = ["starred_status", "starred_count", "side", "view"]
 
 highlight_color = "green"
 starred_color = "yellow"
 
 highlight_color = "green"
 starred_color = "yellow"
index f03620c60fee7632f5fcf69aaa1b43f17113223f..f5f5f6c57d0d4991d40e6a457879eab5642fa895 100644 (file)
@@ -351,10 +351,11 @@ class Display:
                 - 1
             )
         ):
                 - 1
             )
         ):
-            # TODO: Use the variying width unicode block characters to make a
-            # super accurate bar
             self.win.addch(
             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):
             )
 
     def wrap_width(self):