diff options
author | dartcafe <github@dartcafe.de> | 2020-11-17 22:18:38 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-11-19 10:20:58 +0300 |
commit | 6d1e039e1ea26bfca09d3d44130639291126ea45 (patch) | |
tree | 5aadc13dad9370b31d005f8df19801d91e2787d0 | |
parent | 7774dfc70913b384e8536fa11537071e155802d0 (diff) |
use black icon for notifications
-rw-r--r-- | img/polls-black.svg | 7 | ||||
-rw-r--r-- | img/polls.svg | 7 | ||||
-rw-r--r-- | lib/Notification/Notifier.php | 2 |
3 files changed, 15 insertions, 1 deletions
diff --git a/img/polls-black.svg b/img/polls-black.svg new file mode 100644 index 00000000..acaf7958 --- /dev/null +++ b/img/polls-black.svg @@ -0,0 +1,7 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32" viewBox="0 0 32 32"> + <g fill="#000"> + <rect y="2" x="3" height="26" width="7" /> + <rect y="12" x="12" height="16" width="7" /> + <rect y="8" x="21" height="20" width="7" /> + </g> +</svg> diff --git a/img/polls.svg b/img/polls.svg new file mode 100644 index 00000000..f94d056b --- /dev/null +++ b/img/polls.svg @@ -0,0 +1,7 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32" viewBox="0 0 32 32"> + <g fill="#fff"> + <rect y="2" x="3" height="26" width="7" /> + <rect y="12" x="12" height="16" width="7" /> + <rect y="8" x="21" height="20" width="7" /> + </g> +</svg> diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index a0784d9e..87f604ed 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -85,7 +85,7 @@ class Notifier implements INotifier { if ($notification->getApp() !== 'polls') { throw new \InvalidArgumentException(); } - $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('polls', 'app.svg'))); + $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('polls', 'polls-black.svg'))); switch ($notification->getSubject()) { case 'invitation': $poll = $this->pollMapper->find(intval($notification->getObjectId())); |