mirror of
https://github.com/pdxlocations/contact.git
synced 2026-06-18 00:56:00 +02:00
add settings box color
This commit is contained in:
+2
-1
@@ -53,7 +53,8 @@ def initialize_config():
|
||||
"log_header": ["blue", "black"],
|
||||
"log": ["green", "black"],
|
||||
"settings_sensitive": ["red", "black"],
|
||||
"settings_save": ["green", "black"]
|
||||
"settings_save": ["green", "black"],
|
||||
"settings_breadcrumbs": ["white", "black"]
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -25,6 +25,7 @@ def display_menu(current_menu, menu_path, selected_index, show_save_option):
|
||||
# Create a new curses window with dynamic dimensions
|
||||
menu_win = curses.newwin(height, width, start_y, start_x)
|
||||
menu_win.clear()
|
||||
menu_win.attrset((get_color("window_frame")))
|
||||
menu_win.border()
|
||||
menu_win.keypad(True)
|
||||
|
||||
@@ -32,7 +33,7 @@ def display_menu(current_menu, menu_path, selected_index, show_save_option):
|
||||
header = " > ".join(word.title() for word in menu_path)
|
||||
if len(header) > width - 4:
|
||||
header = header[:width - 7] + "..."
|
||||
menu_win.addstr(1, 2, header, curses.A_BOLD)
|
||||
menu_win.addstr(1, 2, header, get_color("settings_breadcrumbs", bold=True))
|
||||
|
||||
# Display the menu options
|
||||
for idx, option in enumerate(current_menu):
|
||||
|
||||
Reference in New Issue
Block a user