diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-20 14:48:51 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-06-20 14:48:51 +0300 |
commit | 90fa27694a6f454820487dcb1ca4e4ceec90a9a1 (patch) | |
tree | ec6821e7aff73031293a9ef3f6a56a3baa672630 /apps/systemtags/lib | |
parent | 8b0546e3f9741980ee2c63b3aca04392408b2e02 (diff) |
Use PNG version of the icons for shipped activities
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/systemtags/lib')
-rw-r--r-- | apps/systemtags/lib/Activity/Provider.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/systemtags/lib/Activity/Provider.php b/apps/systemtags/lib/Activity/Provider.php index 5ef20c281bd..db7ff94fd16 100644 --- a/apps/systemtags/lib/Activity/Provider.php +++ b/apps/systemtags/lib/Activity/Provider.php @@ -104,7 +104,12 @@ class Provider implements IProvider { */ public function parseShortVersion(IEvent $event) { $parsedParameters = $this->getParameters($event); - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/tag.svg'))); + + if ($this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/tag.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/tag.svg'))); + } if ($event->getSubject() === self::ASSIGN_TAG) { if ($parsedParameters['actor']['id'] === $this->activityManager->getCurrentUserId()) { @@ -157,7 +162,12 @@ class Provider implements IProvider { */ public function parseLongVersion(IEvent $event) { $parsedParameters = $this->getParameters($event); - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/tag.svg'))); + + if ($this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/tag.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/tag.svg'))); + } if ($event->getSubject() === self::CREATE_TAG) { if ($parsedParameters['actor']['id'] === $this->activityManager->getCurrentUserId()) { |