refactor: visual tweaks
Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
@@ -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";;
|
||||
|
||||
@@ -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";;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;;
|
||||
|
||||
@@ -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";;
|
||||
|
||||
@@ -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;;
|
||||
|
||||
@@ -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";;
|
||||
|
||||
Reference in New Issue
Block a user