| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg_convertPngToKsplash { |
| |
| local -a SRC |
| local -a DST |
| local FONT='' |
| local COUNT=0 |
| |
| |
| FONT=$(svg_getTTFont "DejaVuLGCSans-Bold") |
| |
| |
| cli_checkFiles -e "$FONT" |
| |
| |
| 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 -e "${SRC[@]}" |
| |
| |
| 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" --as-creating-line |
| |
| |
| 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_expandTMarkers "${DST[4]}" |
| |
| } |