diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-20 13:48:51 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-06-20 13:48:51 +0200 |
commit | 90fa27694a6f454820487dcb1ca4e4ceec90a9a1 (patch) | |
tree | ec6821e7aff73031293a9ef3f6a56a3baa672630 /apps/files_sharing/lib/Activity/Providers/Users.php | |
parent | 8b0546e3f9741980ee2c63b3aca04392408b2e02 (diff) | |
download | nextcloud-server-90fa27694a6f454820487dcb1ca4e4ceec90a9a1.tar.gz nextcloud-server-90fa27694a6f454820487dcb1ca4e4ceec90a9a1.zip |
Use PNG version of the icons for shipped activities
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/lib/Activity/Providers/Users.php')
-rw-r--r-- | apps/files_sharing/lib/Activity/Providers/Users.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Activity/Providers/Users.php b/apps/files_sharing/lib/Activity/Providers/Users.php index eaab35bba9d..02f47f3775a 100644 --- a/apps/files_sharing/lib/Activity/Providers/Users.php +++ b/apps/files_sharing/lib/Activity/Providers/Users.php @@ -60,7 +60,11 @@ class Users extends Base { throw new \InvalidArgumentException(); } - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); + if ($this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); + } $this->setSubjects($event, $subject, $parsedParameters); return $event; @@ -92,7 +96,11 @@ class Users extends Base { throw new \InvalidArgumentException(); } - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); + if ($this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); + } $this->setSubjects($event, $subject, $parsedParameters); return $event; |