From 4442c18570dc05bc6a57a41438a4b1d41599dbd2 Mon Sep 17 00:00:00 2001 From: Cedric Leporcq Date: Sun, 17 Oct 2021 10:16:17 +0200 Subject: [PATCH] fixup! Add path selection in interactive mode using inquierer --- ordigi/request.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ordigi/request.py diff --git a/ordigi/request.py b/ordigi/request.py new file mode 100644 index 0000000..3c26395 --- /dev/null +++ b/ordigi/request.py @@ -0,0 +1,31 @@ +import inquirer +from blessed import Terminal + +term = Terminal() + + +def load_theme(): + custom_theme = { + 'List': { + 'opening_prompt_color': term.yellow, + }, + 'Question': { + 'brackets_color': term.dodgerblue4, + 'default_color': term.yellow, + }, + 'Checkbox': { + 'selection_icon': '❯', + 'selected_icon': '◉', + 'unselected_icon': '◯', + 'selection_color': term.bold_on_dodgerblue4, + 'selected_color': term.dodgerblue2, + 'unselected_color': term.yellow, + }, + 'List': { + 'selection_color': term.bold_on_dodgerblue4, + 'selection_cursor': '❯', + 'unselected_color': term.yellow, + }, + } + + return inquirer.themes.load_theme_from_dict(custom_theme)