From a54a3718554a036542d6b0c010037ccec4f544d7 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Tue, 9 Feb 2021 19:40:28 -0500 Subject: [PATCH] Make background transparent --- lightcards/display.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lightcards/display.py b/lightcards/display.py index a130728..46b5314 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -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() -- 2.39.2