mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 11:04:29 +05:00
feat: add voron toolhead theme to mainsail theme installer
This commit is contained in:
@@ -70,6 +70,23 @@ ms_theme_cyberpunk(){
|
|||||||
[ -d "$THEME_PATH/.theme" ] && rm -rf "$THEME_PATH/.theme"
|
[ -d "$THEME_PATH/.theme" ] && rm -rf "$THEME_PATH/.theme"
|
||||||
cd $THEME_PATH && git clone "$THEME_URL" ".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 "Theme installation complete!"
|
||||||
ok_msg "Please remember to delete your browser cache!\n"
|
ok_msg "Please remember to delete your browser cache!\n"
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,7 @@ ms_theme_ui(){
|
|||||||
echo -e "| Theme: | "
|
echo -e "| Theme: | "
|
||||||
echo -e "| 1) [Dracula] | "
|
echo -e "| 1) [Dracula] | "
|
||||||
echo -e "| 2) [Cyberpunk] | "
|
echo -e "| 2) [Cyberpunk] | "
|
||||||
|
echo -e "| 3) [Voron Toolhead] | "
|
||||||
echo -e "| | "
|
echo -e "| | "
|
||||||
echo -e "| R) [Remove Theme] | "
|
echo -e "| R) [Remove Theme] | "
|
||||||
echo -e "| | "
|
echo -e "| | "
|
||||||
@@ -22,6 +23,7 @@ ms_theme_menu(){
|
|||||||
case "$action" in
|
case "$action" in
|
||||||
1) do_action "ms_theme_dracula" "ms_theme_ui";;
|
1) do_action "ms_theme_dracula" "ms_theme_ui";;
|
||||||
2) do_action "ms_theme_cyberpunk" "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";;
|
R|r) do_action "ms_theme_delete" "ms_theme_ui";;
|
||||||
Q|q) clear; advanced_menu; break;;
|
Q|q) clear; advanced_menu; break;;
|
||||||
*) deny_action "ms_theme_ui";;
|
*) deny_action "ms_theme_ui";;
|
||||||
|
|||||||
Reference in New Issue
Block a user