refactor: replace ${default} with ${white}

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-02 23:34:31 +02:00
parent d1cb24d725
commit c9ef2d3d59
19 changed files with 80 additions and 81 deletions

View File

@@ -91,7 +91,7 @@ switch_ui(){
echo -e "| $(title_msg "~~~~~~~~~ [ Switch Klipper Branch ] ~~~~~~~~~") |"
bottom_border
echo
echo -e " $(title_msg "Active Branch: ")${green}$GET_BRANCH${default}"
echo -e " $(title_msg "Active Branch: ")${green}$GET_BRANCH${white}"
echo
top_border
echo -e "| | "
@@ -109,7 +109,7 @@ switch_menu(){
read_branch
do_action "" "switch_ui"
while true; do
read -p "${cyan}Perform action:${default} " action; echo
read -p "${cyan}Perform action:${white} " action; echo
case "$action" in
1)
clear

View File

@@ -15,7 +15,7 @@ backup_ui(){
top_border
echo -e "| $(title_msg "~~~~~~~~~~~~~~ [ Backup Menu ] ~~~~~~~~~~~~~~") | "
hr
echo -e "| ${yellow}Backup location: ~/kiauh-backups${default} | "
echo -e "| ${yellow}Backup location: ~/kiauh-backups${white} | "
hr
echo -e "| Configuration folder: | Klipper Webinterface: | "
echo -e "| 0) [Klipper configs] | 4) [Mainsail] | "
@@ -33,7 +33,7 @@ backup_ui(){
backup_menu(){
do_action "" "backup_ui"
while true; do
read -p "${cyan}Perform action:${default} " action; echo
read -p "${cyan}Perform action:${white} " action; echo
case "$action" in
0)
do_action "backup_klipper_config_dir" "backup_ui";;

View File

@@ -30,19 +30,19 @@ hr(){
quit_footer(){
hr
echo -e "| ${red}Q) Quit${default} |"
echo -e "| ${red}Q) Quit${white} |"
bottom_border
}
back_footer(){
hr
echo -e "| ${green}B) « Back${default} |"
echo -e "| ${green}B) « Back${white} |"
bottom_border
}
back_help_footer(){
hr
echo -e "| ${green}B) « Back${default} | ${yellow}H) Help [?]${default} |"
echo -e "| ${green}B) « Back${white} | ${yellow}H) Help [?]${white} |"
bottom_border
}

View File

@@ -35,7 +35,7 @@ install_ui(){
install_menu(){
do_action "" "install_ui"
while true; do
read -p "${cyan}Perform action:${default} " action; echo
read -p "${cyan}Perform action:${white} " action; echo
case "$action" in
1)
do_action "klipper_setup_dialog" "install_ui";;

View File

@@ -70,7 +70,6 @@ main_menu(){
octoprint_status
klipperscreen_status
MoonrakerTelegramBot_status
print_msg && clear_msg
main_ui
while true; do
read -p "${cyan}Perform action:${white} " action; echo

View File

@@ -16,20 +16,20 @@ settings_ui(){
top_border
echo -e "| $(title_msg "~~~~~~~~~~~~ [ KIAUH Settings ] ~~~~~~~~~~~~~") | "
hr
echo -e "| ${red}Caution:${default} | "
echo -e "| ${red}Caution:${white} | "
echo -e "| When you change the config folder, be aware that ALL | "
echo -e "| Klipper and Moonraker services will be STOPPED, | "
echo -e "| reconfigured and then restarted again. | "
blank_line
echo -e "| ${red}DO NOT change the folder during printing!${default} | "
echo -e "| ${red}DO NOT change the folder during printing!${white} | "
hr
blank_line
echo -e "| ${cyan}● Current Klipper config folder:${default} | "
echo -e "| ${cyan}● Current Klipper config folder:${white} | "
printf "|%-55s|\n" " $klipper_cfg_loc"
blank_line
hr
if [ -z $klipper_cfg_loc ]; then
echo -e "| ${red}N/A) Install Klipper with KIAUH first to unlock!${default} | "
echo -e "| ${red}N/A) Install Klipper with KIAUH first to unlock!${white} | "
else
echo -e "| 1) Change config folder | "
fi
@@ -39,7 +39,7 @@ settings_ui(){
settings_menu(){
do_action "" "settings_ui"
while true; do
read -p "${cyan}Perform action:${default} " action; echo
read -p "${cyan}Perform action:${white} " action; echo
case "$action" in
1)
if [ ! -z $klipper_cfg_loc ]; then