From fa23d8ea777e87a5c35267dba3ec1f1b4df6d732 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 8 Jun 2026 17:49:32 +0200 Subject: [PATCH] fix(settings): Fix appstore icon color in settings menu Signed-off-by: Joas Schilling --- apps/appstore/REUSE.toml | 2 +- apps/appstore/img/app-dark.svg | 1 + lib/private/NavigationManager.php | 2 +- tests/lib/NavigationManagerTest.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 apps/appstore/img/app-dark.svg diff --git a/apps/appstore/REUSE.toml b/apps/appstore/REUSE.toml index 99c57acf41734..9166f5cad4be7 100644 --- a/apps/appstore/REUSE.toml +++ b/apps/appstore/REUSE.toml @@ -10,7 +10,7 @@ SPDX-FileCopyrightText = "2026 Nextcloud GmbH and Nextcloud contributors" SPDX-License-Identifier = "CC-BY-SA-4.0" [[annotations]] -path = ["img/app.svg"] +path = ["img/app.svg", "img/app-dark.svg"] precedence = "aggregate" SPDX-FileCopyrightText = "2018-2024 Google LLC" SPDX-License-Identifier = "Apache-2.0" diff --git a/apps/appstore/img/app-dark.svg b/apps/appstore/img/app-dark.svg new file mode 100644 index 0000000000000..ded70d96295f9 --- /dev/null +++ b/apps/appstore/img/app-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index f1047d17a537e..b3733b1e26896 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -246,7 +246,7 @@ private function init(bool $resolveClosures = true): void { 'id' => 'core_apps', 'order' => 5, 'href' => $this->urlGenerator->linkToRoute('appstore.Page.viewApps'), - 'icon' => $this->urlGenerator->imagePath('appstore', 'app.svg'), + 'icon' => $this->urlGenerator->imagePath('appstore', 'app-dark.svg'), 'name' => $l->t('Apps'), ]); diff --git a/tests/lib/NavigationManagerTest.php b/tests/lib/NavigationManagerTest.php index 4322791e29ea3..efac863a80139 100644 --- a/tests/lib/NavigationManagerTest.php +++ b/tests/lib/NavigationManagerTest.php @@ -280,7 +280,7 @@ public static function providesNavigationConfig(): array { 'id' => 'core_apps', 'order' => 5, 'href' => '/apps/test/', - 'icon' => '/apps/appstore/img/app.svg', + 'icon' => '/apps/appstore/img/app-dark.svg', 'name' => 'Apps', 'active' => false, 'type' => 'settings',