aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-08-31 21:48:25 +0530
committerLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-08-31 21:48:25 +0530
commit997ae821abb7985f3a78e4debfe0415fe2a86b6f (patch)
tree49e40efbaf3df0c550c2b13e44213b8827568700
parent325d841eade25b84c14551e87f4c5b34e62e79d3 (diff)
downloadwhatsie-997ae821abb7985f3a78e4debfe0415fe2a86b6f.tar.gz
whatsie-997ae821abb7985f3a78e4debfe0415fe2a86b6f.zip
chore: add notification icons
-rw-r--r--src/icons.qrc12
-rw-r--r--src/icons/app/notification/whatsie-notify-1.pngbin0 -> 3840 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-10.pngbin0 -> 3822 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-2.pngbin0 -> 4303 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-3.pngbin0 -> 4424 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-4.pngbin0 -> 4126 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-5.pngbin0 -> 4264 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-6.pngbin0 -> 4513 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-7.pngbin0 -> 4136 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-8.pngbin0 -> 4662 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify-9.pngbin0 -> 4510 bytes
-rw-r--r--src/icons/app/notification/whatsie-notify.pngbin0 -> 3308 bytes
-rw-r--r--src/icons/app/notification/whatsie.pngbin0 -> 3308 bytes
-rwxr-xr-xsrc/icons/app/notification_resize.sh47
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
new file mode 100644
index 0000000..eae7539
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-1.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-10.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-2.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-3.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-4.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-5.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-6.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-7.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-8.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify-9.png
Binary files 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
--- /dev/null
+++ b/src/icons/app/notification/whatsie-notify.png
Binary files differ
diff --git a/src/icons/app/notification/whatsie.png b/src/icons/app/notification/whatsie.png
new file mode 100644
index 0000000..175c8fb
--- /dev/null
+++ b/src/icons/app/notification/whatsie.png
Binary files 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
+<?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"