feat: add voron toolhead theme to mainsail theme installer

This commit is contained in:
th33xitus
2021-06-22 12:07:27 +02:00
parent a9f23e9b23
commit b47a9cf7ed
2 changed files with 19 additions and 0 deletions

View File

@@ -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"
}

View File

@@ -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";;