aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2023-11-13 15:25:06 +0100
committerBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2023-11-14 17:51:21 +0100
commit86a44514bdcd617604e21747fdf00e5c4034ab7c (patch)
treed7fb3f39602f2452632ea522e814118cbf7323c9 /lib
parent8b5d85a9539aa295a5c412d78f3981ee7c89577d (diff)
downloadnextcloud-server-86a44514bdcd617604e21747fdf00e5c4034ab7c.tar.gz
nextcloud-server-86a44514bdcd617604e21747fdf00e5c4034ab7c.zip
Fix user search provider icon
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Search/SearchComposer.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Search/SearchComposer.php b/lib/private/Search/SearchComposer.php
index 0c465385a8c..b92fdd250d8 100644
--- a/lib/private/Search/SearchComposer.php
+++ b/lib/private/Search/SearchComposer.php
@@ -223,6 +223,12 @@ class SearchComposer {
[$appId, 'app.svg'],
['core', 'places/default-app-icon.svg'],
];
+ if ($appId === 'settings' && $providerId === 'users') {
+ // Conflict:
+ // the file /apps/settings/users.svg is already used in black version by top right user menu
+ // Override icon name here
+ $icons = [['settings', 'users-white.svg']];
+ }
foreach ($icons as $i => $icon) {
try {
return $this->urlGenerator->imagePath(... $icon);