diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/icons.qrc | 12 | ||||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-1.png | bin | 0 -> 3840 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-10.png | bin | 0 -> 3822 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-2.png | bin | 0 -> 4303 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-3.png | bin | 0 -> 4424 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-4.png | bin | 0 -> 4126 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-5.png | bin | 0 -> 4264 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-6.png | bin | 0 -> 4513 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-7.png | bin | 0 -> 4136 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-8.png | bin | 0 -> 4662 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify-9.png | bin | 0 -> 4510 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie-notify.png | bin | 0 -> 3308 bytes | |||
-rw-r--r-- | src/icons/app/notification/whatsie.png | bin | 0 -> 3308 bytes | |||
-rwxr-xr-x | src/icons/app/notification_resize.sh | 47 |
14 files changed, 59 insertions, 0 deletions
diff --git a/src/icons.qrc b/src/icons.qrc index 2a207a2..6487575 100644 --- a/src/icons.qrc +++ b/src/icons.qrc @@ -397,5 +397,17 @@ <file>icons/plus.png</file> <file>icons/app/whatsapp-message-32.png</file> <file>icons/green_arrow-right-line.png</file> + <file>icons/app/notification/whatsie-notify-1.png</file> + <file>icons/app/notification/whatsie-notify-2.png</file> + <file>icons/app/notification/whatsie-notify-3.png</file> + <file>icons/app/notification/whatsie-notify-4.png</file> + <file>icons/app/notification/whatsie-notify-5.png</file> + <file>icons/app/notification/whatsie-notify-6.png</file> + <file>icons/app/notification/whatsie-notify-7.png</file> + <file>icons/app/notification/whatsie-notify-8.png</file> + <file>icons/app/notification/whatsie-notify-9.png</file> + <file>icons/app/notification/whatsie-notify-10.png</file> + <file>icons/app/notification/whatsie-notify.png</file> + <file>icons/app/notification/whatsie.png</file> </qresource> </RCC> diff --git a/src/icons/app/notification/whatsie-notify-1.png b/src/icons/app/notification/whatsie-notify-1.png Binary files differnew file mode 100644 index 0000000..eae7539 --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-1.png diff --git a/src/icons/app/notification/whatsie-notify-10.png b/src/icons/app/notification/whatsie-notify-10.png Binary files differnew file mode 100644 index 0000000..2fa9181 --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-10.png diff --git a/src/icons/app/notification/whatsie-notify-2.png b/src/icons/app/notification/whatsie-notify-2.png Binary files differnew file mode 100644 index 0000000..e724780 --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-2.png diff --git a/src/icons/app/notification/whatsie-notify-3.png b/src/icons/app/notification/whatsie-notify-3.png Binary files differnew file mode 100644 index 0000000..440cd91 --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-3.png diff --git a/src/icons/app/notification/whatsie-notify-4.png b/src/icons/app/notification/whatsie-notify-4.png Binary files differnew file mode 100644 index 0000000..1c0709a --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-4.png diff --git a/src/icons/app/notification/whatsie-notify-5.png b/src/icons/app/notification/whatsie-notify-5.png Binary files differnew file mode 100644 index 0000000..1df20ec --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-5.png diff --git a/src/icons/app/notification/whatsie-notify-6.png b/src/icons/app/notification/whatsie-notify-6.png Binary files differnew file mode 100644 index 0000000..2b49292 --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-6.png diff --git a/src/icons/app/notification/whatsie-notify-7.png b/src/icons/app/notification/whatsie-notify-7.png Binary files differnew file mode 100644 index 0000000..522baab --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-7.png diff --git a/src/icons/app/notification/whatsie-notify-8.png b/src/icons/app/notification/whatsie-notify-8.png Binary files differnew file mode 100644 index 0000000..4721bcd --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-8.png diff --git a/src/icons/app/notification/whatsie-notify-9.png b/src/icons/app/notification/whatsie-notify-9.png Binary files differnew file mode 100644 index 0000000..5bf276e --- /dev/null +++ b/src/icons/app/notification/whatsie-notify-9.png diff --git a/src/icons/app/notification/whatsie-notify.png b/src/icons/app/notification/whatsie-notify.png Binary files differnew file mode 100644 index 0000000..175c8fb --- /dev/null +++ b/src/icons/app/notification/whatsie-notify.png diff --git a/src/icons/app/notification/whatsie.png b/src/icons/app/notification/whatsie.png Binary files differnew file mode 100644 index 0000000..175c8fb --- /dev/null +++ b/src/icons/app/notification/whatsie.png diff --git a/src/icons/app/notification_resize.sh b/src/icons/app/notification_resize.sh new file mode 100755 index 0000000..e637466 --- /dev/null +++ b/src/icons/app/notification_resize.sh @@ -0,0 +1,47 @@ +#!/bin/bash +FILE=$1 +WIDTH=$(identify -format '%w' $FILE) +HEIGHT=$(identify -format '%h' $FILE) +NAME=${1%%.*} +EXT=${1#*.} +W=$(echo $WIDTH/2.2 | bc); +H=$W; +X=$(echo $WIDTH-$W | bc) +Y=$(echo $HEIGHT-$H | bc) +RY=$(echo $W/8 | bc); +TX=$(echo $W/2 | bc); +TY=$(echo $H-$RY | bc); +FS=$(echo $W+$RY | bc); + +echo "File: $FILE" +echo "Dimensions: $WIDTH x $HEIGHT" +echo "Name: $NAME" +echo "Ext: $EXT" +echo "X: $X" +echo "Y: $Y" +echo "RY: $RY" +echo "W: $W" +echo "H: $H" +echo "TX: $TX" +echo "TY: $TY" +echo "FS: $FS" + +function makeicon { + echo "Creating.. $1 into $2." + convert -background none -page +0+0 $FILE -page +0+0 <(cat << EOF +<?xml version="1.0" encoding="UTF-8"?> +<svg width="$WIDTH" height="$HEIGHT" version="1.1" xmlns="http://www.w3.org/2000/svg"> + <g transform="translate($X,$Y)"> + <rect x="0" y="0" width="$W" height="$H" ry="$RY" fill="#ff0000" stroke="#ff0000"/> + <text x="$TX" y="$TY" dominant-baseline="top" text-anchor="middle" fill="#ffffff" stroke="#cccccc" font-family="Ubuntu" font-size="$FS">$1</text> + </g> +</svg> +EOF +) -layers merge $2 +} + +for i in {1..9} +do + makeicon $i "$NAME-notify-$i.$EXT" +done +makeicon + "$NAME-notify-10.$EXT" |