From 997ae821abb7985f3a78e4debfe0415fe2a86b6f Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Wed, 31 Aug 2022 21:48:25 +0530 Subject: chore: add notification icons --- src/icons.qrc | 12 ++++++ src/icons/app/notification/whatsie-notify-1.png | Bin 0 -> 3840 bytes src/icons/app/notification/whatsie-notify-10.png | Bin 0 -> 3822 bytes src/icons/app/notification/whatsie-notify-2.png | Bin 0 -> 4303 bytes src/icons/app/notification/whatsie-notify-3.png | Bin 0 -> 4424 bytes src/icons/app/notification/whatsie-notify-4.png | Bin 0 -> 4126 bytes src/icons/app/notification/whatsie-notify-5.png | Bin 0 -> 4264 bytes src/icons/app/notification/whatsie-notify-6.png | Bin 0 -> 4513 bytes src/icons/app/notification/whatsie-notify-7.png | Bin 0 -> 4136 bytes src/icons/app/notification/whatsie-notify-8.png | Bin 0 -> 4662 bytes src/icons/app/notification/whatsie-notify-9.png | Bin 0 -> 4510 bytes src/icons/app/notification/whatsie-notify.png | Bin 0 -> 3308 bytes src/icons/app/notification/whatsie.png | Bin 0 -> 3308 bytes src/icons/app/notification_resize.sh | 47 +++++++++++++++++++++++ 14 files changed, 59 insertions(+) create mode 100644 src/icons/app/notification/whatsie-notify-1.png create mode 100644 src/icons/app/notification/whatsie-notify-10.png create mode 100644 src/icons/app/notification/whatsie-notify-2.png create mode 100644 src/icons/app/notification/whatsie-notify-3.png create mode 100644 src/icons/app/notification/whatsie-notify-4.png create mode 100644 src/icons/app/notification/whatsie-notify-5.png create mode 100644 src/icons/app/notification/whatsie-notify-6.png create mode 100644 src/icons/app/notification/whatsie-notify-7.png create mode 100644 src/icons/app/notification/whatsie-notify-8.png create mode 100644 src/icons/app/notification/whatsie-notify-9.png create mode 100644 src/icons/app/notification/whatsie-notify.png create mode 100644 src/icons/app/notification/whatsie.png create mode 100755 src/icons/app/notification_resize.sh (limited to 'src') 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 @@ icons/plus.png icons/app/whatsapp-message-32.png icons/green_arrow-right-line.png + icons/app/notification/whatsie-notify-1.png + icons/app/notification/whatsie-notify-2.png + icons/app/notification/whatsie-notify-3.png + icons/app/notification/whatsie-notify-4.png + icons/app/notification/whatsie-notify-5.png + icons/app/notification/whatsie-notify-6.png + icons/app/notification/whatsie-notify-7.png + icons/app/notification/whatsie-notify-8.png + icons/app/notification/whatsie-notify-9.png + icons/app/notification/whatsie-notify-10.png + icons/app/notification/whatsie-notify.png + icons/app/notification/whatsie.png diff --git a/src/icons/app/notification/whatsie-notify-1.png b/src/icons/app/notification/whatsie-notify-1.png new file mode 100644 index 0000000..eae7539 Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-1.png differ diff --git a/src/icons/app/notification/whatsie-notify-10.png b/src/icons/app/notification/whatsie-notify-10.png new file mode 100644 index 0000000..2fa9181 Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-10.png differ diff --git a/src/icons/app/notification/whatsie-notify-2.png b/src/icons/app/notification/whatsie-notify-2.png new file mode 100644 index 0000000..e724780 Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-2.png differ diff --git a/src/icons/app/notification/whatsie-notify-3.png b/src/icons/app/notification/whatsie-notify-3.png new file mode 100644 index 0000000..440cd91 Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-3.png differ diff --git a/src/icons/app/notification/whatsie-notify-4.png b/src/icons/app/notification/whatsie-notify-4.png new file mode 100644 index 0000000..1c0709a Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-4.png differ diff --git a/src/icons/app/notification/whatsie-notify-5.png b/src/icons/app/notification/whatsie-notify-5.png new file mode 100644 index 0000000..1df20ec Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-5.png differ diff --git a/src/icons/app/notification/whatsie-notify-6.png b/src/icons/app/notification/whatsie-notify-6.png new file mode 100644 index 0000000..2b49292 Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-6.png differ diff --git a/src/icons/app/notification/whatsie-notify-7.png b/src/icons/app/notification/whatsie-notify-7.png new file mode 100644 index 0000000..522baab Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-7.png differ diff --git a/src/icons/app/notification/whatsie-notify-8.png b/src/icons/app/notification/whatsie-notify-8.png new file mode 100644 index 0000000..4721bcd Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-8.png differ diff --git a/src/icons/app/notification/whatsie-notify-9.png b/src/icons/app/notification/whatsie-notify-9.png new file mode 100644 index 0000000..5bf276e Binary files /dev/null and b/src/icons/app/notification/whatsie-notify-9.png differ diff --git a/src/icons/app/notification/whatsie-notify.png b/src/icons/app/notification/whatsie-notify.png new file mode 100644 index 0000000..175c8fb Binary files /dev/null and b/src/icons/app/notification/whatsie-notify.png differ diff --git a/src/icons/app/notification/whatsie.png b/src/icons/app/notification/whatsie.png new file mode 100644 index 0000000..175c8fb Binary files /dev/null and b/src/icons/app/notification/whatsie.png differ 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 + + + + + $1 + + +EOF +) -layers merge $2 +} + +for i in {1..9} +do + makeicon $i "$NAME-notify-$i.$EXT" +done +makeicon + "$NAME-notify-10.$EXT" -- cgit v1.2.3