]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Make background transparent
[lightcards.git] / lightcards / display.py
index a130728e703776f8ee1d5b62ccad9454886da353..46b5314292e2ddd76d5e8776a1b6fbf51e457235 100644 (file)
@@ -21,9 +21,10 @@ class Display:
         self.win = stdscr
         (mlines, mcols) = self.win.getmaxyx()
         curses.curs_set(0)  # Hide cursor
-        curses.init_pair(1, curses.COLOR_CYAN, 0)
-        curses.init_pair(2, curses.COLOR_RED, 0)
-        curses.init_pair(3, curses.COLOR_YELLOW, 0)
+        curses.use_default_colors()  # Allow transparency
+        curses.init_pair(1, curses.COLOR_CYAN, -1)
+        curses.init_pair(2, curses.COLOR_RED, -1)
+        curses.init_pair(3, curses.COLOR_YELLOW, -1)
 
         (self.main_win, self.main_panel) = self.panel_create(mlines, mcols)
         self.menu_init()