diff --git a/img/app-dark.svg b/img/app-dark.svg new file mode 100644 index 000000000..c8318cc87 --- /dev/null +++ b/img/app-dark.svg @@ -0,0 +1,4 @@ + + + + diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php index 09f48d376..4fe43e7cd 100644 --- a/lib/Settings/Section.php +++ b/lib/Settings/Section.php @@ -22,14 +22,18 @@ namespace OCA\LogReader\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) { + public function __construct(IL10N $l, IURLGenerator $url) { $this->l = $l; + $this->url = $url; } /** @@ -62,4 +66,11 @@ public function getName() { public function getPriority() { return 90; } + + /** + * {@inheritdoc} + */ + public function getIcon() { + return $this->url->imagePath('logreader', 'app-dark.svg'); + } }