| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_doKsplash { |
| |
| local -a SRC |
| local -a DST |
| local FONT='' |
| local COUNT=0 |
| |
| |
| FONT=$(cli_getRepoTLDir)/Identity/Fonts/DejaVuLGCSans-Bold.ttf |
| |
| |
| cli_checkFiles "$FONT" 'f' |
| |
| |
| SRC[0]="${OUTPUT}/splash_top.png" |
| SRC[1]="${OUTPUT}/splash_active_bar.png" |
| SRC[2]="${OUTPUT}/splash_inactive_bar.png" |
| SRC[3]="${OUTPUT}/splash_bottom.png" |
| SRC[4]="$(dirname $TEMPLATE)/Theme.rc" |
| |
| |
| cli_checkFiles "${SRC[@]}" 'f' |
| |
| |
| DST[0]="${OUTPUT}/splash_top.png" |
| DST[1]="${OUTPUT}/splash_active_bar.png" |
| DST[2]="${OUTPUT}/splash_inactive_bar.png" |
| DST[3]="${OUTPUT}/splash_bottom.png" |
| DST[4]="${OUTPUT}/Theme.rc" |
| |
| |
| cli_printMessage "${OUTPUT}/Preview.png" 'AsCreatingLine' |
| |
| |
| convert -append ${SRC[0]} ${SRC[1]} ${SRC[3]} ${OUTPUT}/Preview.png |
| |
| |
| |
| |
| |
| mogrify -draw 'text 6,295 "KDE is up and running."' \ |
| -fill \ |
| -font $FONT \ |
| ${OUTPUT}/Preview.png |
| |
| |
| cp ${SRC[4]} ${DST[4]} |
| |
| |
| cli_replaceTMarkers "${DST[4]}" |
| |
| } |