Skip to content

Commit 4907585

Browse files
Merge pull request #81 from nextcloud/settings-icon
Add icon to admin page sidebar
2 parents e82897d + 722e94c commit 4907585

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

img/app-dark.svg

Lines changed: 4 additions & 0 deletions
Loading

img/app.svg

Lines changed: 1 addition & 2 deletions
Loading

lib/Settings/Section.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,18 @@
2424
namespace OCA\User_SAML\Settings;
2525

2626
use OCP\IL10N;
27-
use OCP\Settings\ISection;
27+
use OCP\IURLGenerator;
28+
use OCP\Settings\IIconSection;
2829

29-
class Section implements ISection {
30+
class Section implements IIconSection {
3031
/** @var IL10N */
3132
private $l;
33+
/** @var IURLGenerator */
34+
private $url;
3235

33-
/**
34-
* @param IL10N $l
35-
*/
36-
public function __construct(IL10N $l) {
36+
public function __construct(IL10N $l, IURLGenerator $url) {
3737
$this->l = $l;
38+
$this->url = $url;
3839
}
3940

4041
/**
@@ -57,4 +58,11 @@ public function getName() {
5758
public function getPriority() {
5859
return 75;
5960
}
61+
62+
/**
63+
* {@inheritdoc}
64+
*/
65+
public function getIcon() {
66+
return $this->url->imagePath('user_saml', 'app-dark.svg');
67+
}
6068
}

0 commit comments

Comments
 (0)