mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 19:14:27 +05:00
remove branding removal function for mainsail
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
/*KIAUH-REMOVE-VORON-BRANDING*/
|
|
||||||
#nav-header img:first-child {
|
|
||||||
display: block;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
background: url(/img/klipper-logo-small.png) no-repeat;
|
|
||||||
width: 49px;
|
|
||||||
height: 40px;
|
|
||||||
padding-left: 49px;
|
|
||||||
}
|
|
||||||
div.v-image__image.v-image__image--cover {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
div.v-image.v-responsive.theme--dark {
|
|
||||||
background: linear-gradient(27deg, #252525 5px, transparent 5px) 0 5px,
|
|
||||||
linear-gradient(207deg, #252525 5px, transparent 5px) 10px 0px,
|
|
||||||
linear-gradient(27deg, #323232 5px, transparent 5px) 0px 10px,
|
|
||||||
linear-gradient(207deg, #323232 5px, transparent 5px) 10px 5px,
|
|
||||||
linear-gradient(90deg, #2b2b2b 10px, transparent 10px),
|
|
||||||
linear-gradient(
|
|
||||||
#2d2d2d 25%,
|
|
||||||
#2a2a2a 25%,
|
|
||||||
#2a2a2a 50%,
|
|
||||||
transparent 50%,
|
|
||||||
transparent 75%,
|
|
||||||
#343434 75%,
|
|
||||||
#343434
|
|
||||||
);
|
|
||||||
background-color: #232323;
|
|
||||||
background-size: 20px 20px;
|
|
||||||
background-clip: content-box;
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB |
@@ -182,48 +182,6 @@ print_error(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_branding(){
|
|
||||||
echo
|
|
||||||
top_border
|
|
||||||
echo -e "| This action will replace the Mainsail logo and |"
|
|
||||||
echo -e "| Favicon with the Klipper logo. Also the Voron |"
|
|
||||||
echo -e "| background image of the sidebar will be replaced by |"
|
|
||||||
echo -e "| a carbon fibre style CSS pattern. |"
|
|
||||||
hr
|
|
||||||
echo -e "| Note: You have to perform this action again, |"
|
|
||||||
echo -e "| everytime you update Mainsail. |"
|
|
||||||
bottom_border
|
|
||||||
while true; do
|
|
||||||
read -p "${cyan}###### Do you want to continue? (Y/n):${default} " yn
|
|
||||||
case "$yn" in
|
|
||||||
Y|y|Yes|yes|"")
|
|
||||||
cd $MAINSAIL_DIR/css
|
|
||||||
FILE=$(find -name "app.*.css" | cut -d"/" -f2)
|
|
||||||
status_msg "Patching file '$FILE' ..."
|
|
||||||
cp -n $KLIPPER_DIR/docs/img/klipper-logo-small.png $MAINSAIL_DIR/img/
|
|
||||||
#write extra lines to app.css
|
|
||||||
echo >> "$FILE"
|
|
||||||
cat < ${HOME}/kiauh/resources/app.css >> "$FILE"
|
|
||||||
ok_msg "File '$FILE' patched!"
|
|
||||||
status_msg "Setting new Favicon ..."
|
|
||||||
#backup old favicon
|
|
||||||
cp -n $MAINSAIL_DIR/favicon.ico $MAINSAIL_DIR/voron_favicon.ico
|
|
||||||
cp ${HOME}/kiauh/resources/favicon.ico $MAINSAIL_DIR/favicon.ico
|
|
||||||
ok_msg "Icon set!"
|
|
||||||
echo
|
|
||||||
ok_msg "Brandings removed!"
|
|
||||||
ok_msg "Clear browser cache and reload Mainsail (F5)!"
|
|
||||||
echo
|
|
||||||
break;;
|
|
||||||
N|n|No|no)
|
|
||||||
break;;
|
|
||||||
*)
|
|
||||||
print_unkown_cmd
|
|
||||||
print_msg && clear_msg;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
install_extension_shell_command(){
|
install_extension_shell_command(){
|
||||||
echo
|
echo
|
||||||
top_border
|
top_border
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ advanced_ui(){
|
|||||||
echo -e "| Klipper: | System: | "
|
echo -e "| Klipper: | System: | "
|
||||||
echo -e "| 1) [Switch Version] | 6) [Change hostname] | "
|
echo -e "| 1) [Switch Version] | 6) [Change hostname] | "
|
||||||
echo -e "| 2) [Rollback] | | "
|
echo -e "| 2) [Rollback] | | "
|
||||||
echo -e "| | Mainsail: | "
|
echo -e "| | Extensions: | "
|
||||||
echo -e "| Firmware: | 7) [Remove branding] | "
|
echo -e "| Firmware: | 7) [Shell Command] | "
|
||||||
echo -e "| 3) [Build only] | | "
|
echo -e "| 3) [Build only] | | "
|
||||||
echo -e "| 4) [Build + Flash MCU] | Extensions: | "
|
echo -e "| 4) [Build + Flash MCU] | | "
|
||||||
echo -e "| 5) [Get Printer-USB] | 8) [Shell Command] | "
|
echo -e "| 5) [Get Printer-USB] | | "
|
||||||
echo -e "| | | "
|
echo -e "| | | "
|
||||||
quit_footer
|
quit_footer
|
||||||
}
|
}
|
||||||
@@ -77,12 +77,6 @@ advanced_menu(){
|
|||||||
print_msg && clear_msg
|
print_msg && clear_msg
|
||||||
advanced_ui;;
|
advanced_ui;;
|
||||||
7)
|
7)
|
||||||
clear
|
|
||||||
print_header
|
|
||||||
remove_branding
|
|
||||||
print_msg && clear_msg
|
|
||||||
advanced_ui;;
|
|
||||||
8)
|
|
||||||
clear
|
clear
|
||||||
print_header
|
print_header
|
||||||
install_extension_shell_command
|
install_extension_shell_command
|
||||||
|
|||||||
Reference in New Issue
Block a user