Skip to content

Commit 0b19327

Browse files
committed
fix(filepicker): use proper folder icons
We need AccountGroup instead of just Group (wrong icon). Also its the key icon instead of the lock icon for encryption (to be inline with files app). Also use outlines icons. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent a61c93d commit 0b19327

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/components/FilePicker/FilePreview.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<script setup lang="ts">
2727
import type { INode } from '@nextcloud/files'
2828
29-
import { mdiAccountPlus, mdiGroup, mdiLink, mdiLock, mdiNetwork, mdiTag } from '@mdi/js'
29+
import { mdiAccountGroupOutline, mdiAccountPlus, mdiKey, mdiLink, mdiNetworkOutline, mdiTagOutline } from '@mdi/js'
3030
import { FileType } from '@nextcloud/files'
3131
import { ShareType } from '@nextcloud/sharing'
3232
import { computed, ref, toRef } from 'vue'
@@ -65,12 +65,12 @@ const folderDecorationIcon = computed(() => {
6565
6666
// Encrypted folders
6767
if (props.node.attributes?.['is-encrypted'] === 1) {
68-
return mdiLock
68+
return mdiKey
6969
}
7070
7171
// System tags
7272
if (props.node.attributes?.['is-tag']) {
73-
return mdiTag
73+
return mdiTagOutline
7474
}
7575
7676
// Link and mail shared folders
@@ -87,9 +87,9 @@ const folderDecorationIcon = computed(() => {
8787
switch (props.node.attributes?.['mount-type']) {
8888
case 'external':
8989
case 'external-session':
90-
return mdiNetwork
90+
return mdiNetworkOutline
9191
case 'group':
92-
return mdiGroup
92+
return mdiAccountGroupOutline
9393
case 'shared':
9494
return mdiAccountPlus
9595
}

0 commit comments

Comments
 (0)