aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-24 10:56:31 -0600
committerGitHub <noreply@github.com>2017-01-24 10:56:31 -0600
commite09bba5e366d14223c1326ac4a08cf3e5904612a (patch)
tree824ddc7166e002b46bea6f1cff916785603c2494 /apps/theming/lib
parentf55260bc83feeb76ae662c7b97d092da83d8b6bb (diff)
parent38f684aadfb10d491fabfeb0af9a22c109c9cfff (diff)
downloadnextcloud-server-e09bba5e366d14223c1326ac4a08cf3e5904612a.tar.gz
nextcloud-server-e09bba5e366d14223c1326ac4a08cf3e5904612a.zip
Merge pull request #3151 from nextcloud/navigation-icons
add icons to navigation of personal & admin settings
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/Settings/Section.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/apps/theming/lib/Settings/Section.php b/apps/theming/lib/Settings/Section.php
index cffbb8901c8..6078743dead 100644
--- a/apps/theming/lib/Settings/Section.php
+++ b/apps/theming/lib/Settings/Section.php
@@ -24,13 +24,21 @@
namespace OCA\Theming\Settings;
use OCP\IL10N;
-use OCP\Settings\ISection;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
-class Section implements ISection {
+class Section implements IIconSection {
/** @var IL10N */
private $l;
+ /** @var IURLGenerator */
+ private $url;
- public function __construct(IL10N $l) {
+ /**
+ * @param IURLGenerator $url
+ * @param IL10N $l
+ */
+ public function __construct(IURLGenerator $url, IL10N $l) {
+ $this->url = $url;
$this->l = $l;
}
@@ -64,4 +72,11 @@ class Section implements ISection {
public function getPriority() {
return 30;
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getIcon() {
+ return $this->url->imagePath('theming', 'app-dark.svg');
+ }
}