From 80cd36fb84daf5bd7ecc8203b65dbd1aa785c74c Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Sun, 24 Sep 2023 09:26:35 -0500 Subject: [PATCH] change A_REVERSE to A_STANDOUT --- src/get_todo.py | 2 +- src/print_todos.py | 2 +- todo.py | 4 ++-- todo.txt | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/get_todo.py b/src/get_todo.py index 230c09d..c5a1c4d 100644 --- a/src/get_todo.py +++ b/src/get_todo.py @@ -250,7 +250,7 @@ def wgetnstr( return wgetnstr_success(todo, chars) win.addstr(1, len(chars) + 1, "█") for i, char in enumerate("".join(chars).ljust(win.getmaxyx()[1] - 2)): - win.addstr(1, i + 1, char, curses.A_REVERSE if i == position else 0) + win.addstr(1, i + 1, char, curses.A_STANDOUT if i == position else 0) win.refresh() try: input_char = win.getch() diff --git a/src/print_todos.py b/src/print_todos.py index 5e3483b..9e2039e 100644 --- a/src/print_todos.py +++ b/src/print_todos.py @@ -142,7 +142,7 @@ def print_todos( counter, display_string[counter], curses.color_pair(todo.color or 7) - | (curses.A_REVERSE if i in highlight else 0), + | (curses.A_STANDOUT if i in highlight else 0), ) except OverflowError: # This function call will throw an OverflowError if diff --git a/todo.py b/todo.py index fc97fc3..de8a2f1 100755 --- a/todo.py +++ b/todo.py @@ -233,7 +233,7 @@ def color_menu(parent_win: Any, original: int) -> int: 1, line, curses.color_pair(get_color(line.strip())) - | (curses.A_REVERSE if i == selected else 0), + | (curses.A_STANDOUT if i == selected else 0), ) try: key = win.getch() @@ -316,7 +316,7 @@ def sort_menu( i + 1, 1, line, - curses.A_REVERSE if i == cursor else 0, + curses.A_STANDOUT if i == cursor else 0, ) try: key = win.getch() diff --git a/todo.txt b/todo.txt index db797ce..3762c91 100644 --- a/todo.txt +++ b/todo.txt @@ -6,5 +6,4 @@ -4 allow multiline print -4 allow wgetnstr to use multiline editing - make startup faster -- make new_todo_current use empty todo? - add keybind to get_todo that allows for toggling between note and todo \ No newline at end of file