diff --git a/appinfo/info.xml b/appinfo/info.xml index 9e93fa8..9c83e03 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -28,7 +28,7 @@ OCA\NMCSettings\Settings\Personal\Security\NmcEndToEndEncryption OCA\NMCSettings\Sections\Personal\AccountSettings OCA\NMCSettings\Sections\Personal\DevicesSessions - OCA\NMCSettings\Sections\Personal\Themes + OCA\NMCSettings\Sections\Personal\Appearance OCA\NMCSettings\Settings\Groupware OCA\NMCSettings\Settings\PersonalInfo OCA\NMCSettings\Settings\Security diff --git a/lib/Sections/Personal/Themes.php b/lib/Sections/Personal/Appearance.php similarity index 72% rename from lib/Sections/Personal/Themes.php rename to lib/Sections/Personal/Appearance.php index afd0829..521d365 100644 --- a/lib/Sections/Personal/Themes.php +++ b/lib/Sections/Personal/Appearance.php @@ -6,21 +6,25 @@ use OCP\IURLGenerator; use OCP\Settings\IIconSection; -class Themes implements IIconSection { - private IL10N $l; - private IURLGenerator $urlGenerator; +class Appearance implements IIconSection { + + /** @var IL10N */ + private $l; + + /** @var IURLGenerator */ + private $urlGenerator; public function __construct(IL10N $l, IURLGenerator $urlGenerator) { $this->l = $l; $this->urlGenerator = $urlGenerator; } - public function getIcon(): string { + public function getIcon() { return $this->urlGenerator->imagePath('nmctheme', 'settings/appearance.svg'); } public function getID(): string { - return 'themes'; + return 'appearance'; } public function getName(): string { @@ -28,6 +32,6 @@ public function getName(): string { } public function getPriority(): int { - return -1; + return -5; } } diff --git a/lib/Settings/Personal/NmcPersonalThemes.php b/lib/Settings/Personal/NmcPersonalThemes.php index 37777fb..8b08651 100644 --- a/lib/Settings/Personal/NmcPersonalThemes.php +++ b/lib/Settings/Personal/NmcPersonalThemes.php @@ -68,7 +68,7 @@ public function getForm(): TemplateResponse { /** {@inheritDoc} */ public function getSection(): string { - return 'themes'; + return 'appearance'; } /** {@inheritDoc} */ diff --git a/src/components/UserThemes.vue b/src/components/UserThemes.vue index c9b66e0..3c89008 100644 --- a/src/components/UserThemes.vue +++ b/src/components/UserThemes.vue @@ -23,13 +23,13 @@