diff --git a/scripts/ms_theme_installer.sh b/scripts/ms_theme_installer.sh index 30fad4c..0d30335 100755 --- a/scripts/ms_theme_installer.sh +++ b/scripts/ms_theme_installer.sh @@ -70,6 +70,23 @@ ms_theme_cyberpunk(){ [ -d "$THEME_PATH/.theme" ] && rm -rf "$THEME_PATH/.theme" cd $THEME_PATH && git clone "$THEME_URL" ".theme" + ok_msg "Theme installation complete!" + ok_msg "Please remember to delete your browser cache!\n" +} + +ms_theme_voron_toolhead(){ + THEME_URL="https://github.com/eriroh/Mainsail-x-Voron-Toolhead-Theme" + + ### check and select printer if there is more than 1 + check_select_printer + + ### download all files + status_msg "Installing Mainsail x Voron Toolhead theme ..." + status_msg "Please wait ..." + + [ -d "$THEME_PATH/.theme" ] && rm -rf "$THEME_PATH/.theme" + cd $THEME_PATH && git clone "$THEME_URL" ".theme" + ok_msg "Theme installation complete!" ok_msg "Please remember to delete your browser cache!\n" } \ No newline at end of file diff --git a/scripts/ui/ms_theme_menu.sh b/scripts/ui/ms_theme_menu.sh index 79816d0..43330c7 100755 --- a/scripts/ui/ms_theme_menu.sh +++ b/scripts/ui/ms_theme_menu.sh @@ -9,6 +9,7 @@ ms_theme_ui(){ echo -e "| Theme: | " echo -e "| 1) [Dracula] | " echo -e "| 2) [Cyberpunk] | " + echo -e "| 3) [Voron Toolhead] | " echo -e "| | " echo -e "| R) [Remove Theme] | " echo -e "| | " @@ -22,6 +23,7 @@ ms_theme_menu(){ case "$action" in 1) do_action "ms_theme_dracula" "ms_theme_ui";; 2) do_action "ms_theme_cyberpunk" "ms_theme_ui";; + 3) do_action "ms_theme_voron_toolhead" "ms_theme_ui";; R|r) do_action "ms_theme_delete" "ms_theme_ui";; Q|q) clear; advanced_menu; break;; *) deny_action "ms_theme_ui";;