refactor: visual tweaks

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-21 19:44:25 +02:00
parent 551b040021
commit a0ca25a99a
10 changed files with 40 additions and 38 deletions

View File

@@ -29,7 +29,7 @@ function advanced_ui(){
function advanced_menu(){
do_action "" "advanced_ui"
while true; do
read -p "${cyan}Perform action:${white} " action; echo
read -p "${cyan}####### Perform action:${white} " action
case "${action}" in
1)
do_action "load_klipper_state" "advanced_ui";;

View File

@@ -33,7 +33,7 @@ function backup_ui(){
function backup_menu(){
do_action "" "backup_ui"
while true; do
read -p "${cyan}Perform action:${white} " action; echo
read -p "${cyan}####### Perform action:${white} " action
case "${action}" in
0)
do_action "backup_klipper_config_dir" "backup_ui";;

View File

@@ -37,7 +37,7 @@ function install_menu(){
install_ui
while true; do
read -p "${cyan}Perform action:${white} " action; echo
read -p "${cyan}####### Perform action:${white} " action
case "${action}" in
1)clear && print_header
select_klipper_python_version
@@ -79,7 +79,7 @@ function select_klipper_python_version(){
echo -e "| 2) [Python 3.x] ${yellow}(experimental)${white} | "
back_footer
while true; do
read -p "${cyan}###### Select Python version:${white} " action; echo
read -p "${cyan}###### Select Python version:${white} " action
case "${action}" in
1)
select_msg "Python 2.7"

View File

@@ -66,7 +66,7 @@ function main_menu(){
kiauh_update_dialog
main_ui
while true; do
read -p "${cyan}Perform action:${white} " action; echo
read -p "${cyan}####### Perform action:${white} " action
case "${action}" in
"start klipper") do_action_service "start" "klipper"; main_ui;;
"stop klipper") do_action_service "stop" "klipper"; main_ui;;

View File

@@ -15,8 +15,7 @@ function remove_ui(){
top_border
echo -e "| ${red}~~~~~~~~~~~~~~ [ Remove Menu ] ~~~~~~~~~~~~~~${white} | "
hr
echo -e "| ${yellow}INFO:${white} | "
echo -e "| Printer configs or backups always remain untouched! | "
echo -e "| ${yellow}INFO: Configurations and/or any backups will be kept!${white} | "
hr
echo -e "| Firmware: | Touchscreen GUI: | "
echo -e "| 1) [Klipper] | 5) [KlipperScreen] | "
@@ -33,7 +32,7 @@ function remove_ui(){
function remove_menu(){
do_action "" "remove_ui"
while true; do
read -p "${cyan}Perform action:${white} " action; echo
read -p "${cyan}####### Perform action:${white} " action
case "${action}" in
1)
do_action "remove_klipper" "remove_ui";;

View File

@@ -121,7 +121,7 @@ function settings_menu(){
clear && print_header
settings_ui
while true; do
read -p "${cyan}Perform action:${white} " action; echo
read -p "${cyan}####### Perform action:${white} " action
case "${action}" in
1)
change_klipper_cfg_folder && settings_ui;;

View File

@@ -43,7 +43,7 @@ function update_menu(){
read_bb4u_stat
do_action "" "update_ui"
while true; do
read -p "${cyan}Perform action:${white} " action; echo
read -p "${cyan}####### Perform action:${white} " action
case "${action}" in
0)
do_action "toggle_backups" "update_ui";;