Skip to content

Commit

Permalink
Add icon to admin page sidebar
Browse files Browse the repository at this point in the history
* follow up to nextcloud/server#3151

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Jan 24, 2017
1 parent e82897d commit 722e94c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
4 changes: 4 additions & 0 deletions img/app-dark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions img/app.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions lib/Settings/Section.php
Expand Up @@ -24,17 +24,18 @@
namespace OCA\User_SAML\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;

/**
* @param IL10N $l
*/
public function __construct(IL10N $l) {
public function __construct(IL10N $l, IURLGenerator $url) {
$this->l = $l;
$this->url = $url;
}

/**
Expand All @@ -57,4 +58,11 @@ public function getName() {
public function getPriority() {
return 75;
}

/**
* {@inheritdoc}
*/
public function getIcon() {
return $this->url->imagePath('user_saml', 'app-dark.svg');
}
}

0 comments on commit 722e94c

Please sign in to comment.