aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/App
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-03-08 01:05:24 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-03-08 09:51:03 +0100
commitc8d7a5acaabb5c2f8bae1ccb70ce9c76cfd86c5c (patch)
treec03f1e5331a6133b879775857c19c9bfd47ee5bd /lib/public/App
parentb6691b35c7be946f038a6c8c6d221e64c60788f4 (diff)
downloadnextcloud-server-c8d7a5acaabb5c2f8bae1ccb70ce9c76cfd86c5c.tar.gz
nextcloud-server-c8d7a5acaabb5c2f8bae1ccb70ce9c76cfd86c5c.zip
fix(AppManager): Allow to query dark **or** bright icon
The navigation needs the bright icon, while the notifications and activity need a dark icon. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib/public/App')
-rw-r--r--lib/public/App/IAppManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php
index 968771388dc..142e8bb8515 100644
--- a/lib/public/App/IAppManager.php
+++ b/lib/public/App/IAppManager.php
@@ -65,10 +65,11 @@ interface IAppManager {
* Returns the app icon or null if none is found
*
* @param string $appId
+ * @param bool $dark Enable to request a dark icon variant, default is a white icon
* @return string|null
* @since 29.0.0
*/
- public function getAppIcon(string $appId): string|null;
+ public function getAppIcon(string $appId, bool $dark = false): string|null;
/**
* Check if an app is enabled for user