Use a white app icon and a dark one for the settings

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-02-04 11:03:50 +01:00
parent e2f2836ae0
commit 36571111c5
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
3 changed files with 7 additions and 6 deletions

1
img/app-dark.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z" /></svg>

After

Width:  |  Height:  |  Size: 321 B

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z" /></svg> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z" fill="#FFFFFF"/></svg>

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 335 B

View File

@ -38,7 +38,7 @@ class RegistrationSettingsSection implements IIconSection {
$this->l10n = $l10n; $this->l10n = $l10n;
$this->urlGenerator = $urlGenerator; $this->urlGenerator = $urlGenerator;
} }
/** /**
* Section ID to be set in Settings * Section ID to be set in Settings
* @return string * @return string
@ -46,7 +46,7 @@ class RegistrationSettingsSection implements IIconSection {
public function getID(): string { public function getID(): string {
return 'registration'; return 'registration';
} }
/** /**
* Section Name to be displayed * Section Name to be displayed
* @return string * @return string
@ -54,7 +54,7 @@ class RegistrationSettingsSection implements IIconSection {
public function getName(): string { public function getName(): string {
return $this->l10n->t('Registration'); return $this->l10n->t('Registration');
} }
/** /**
* Return Priority of section 0-100 * Return Priority of section 0-100
* @return int * @return int
@ -62,12 +62,12 @@ class RegistrationSettingsSection implements IIconSection {
public function getPriority(): int { public function getPriority(): int {
return 80; return 80;
} }
/** /**
* Pass the relative path to the icon * Pass the relative path to the icon
* @return string * @return string
*/ */
public function getIcon(): string { public function getIcon(): string {
return $this->urlGenerator->imagePath('registration', 'app.svg'); return $this->urlGenerator->imagePath('registration', 'app-dark.svg');
} }
} }