Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit ab299ce

Browse files
committed
feat: update file-tree icons
1 parent dabfeff commit ab299ce

File tree

4 files changed

+25
-14
lines changed

4 files changed

+25
-14
lines changed

components/FileIcon.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,40 @@ const props = defineProps<{
88
const FILE_ICONS = [
99
{
1010
match: /\.vue$/,
11-
icon: 'i-logos-vue',
11+
icon: 'i-catppuccin-vue',
1212
},
1313
{
1414
match: /nuxt\.config\.\w+$/,
15-
icon: 'i-logos-nuxt-icon scale-110',
15+
icon: 'i-catppuccin-nuxt',
1616
},
1717
{
1818
match: /package\.json$/,
19-
icon: 'i-file-icons-npm text-red scale-110',
19+
icon: 'i-catppuccin-npm',
2020
},
2121
{
2222
match: /\.[mc]?tsx?$/,
23-
icon: 'i-file-icons-typescript-alt text-blue3',
23+
icon: 'i-catppuccin-typescript',
2424
},
2525
{
2626
match: /\.[mc]?jsx?$/,
27-
icon: 'i-devicon-javascript',
27+
icon: 'i-catppuccin-javascript',
2828
},
2929
]
3030
3131
const icon = computed(() => {
3232
if (props.isDirectory) {
3333
return props.isDirectoryOpen
34-
? 'i-ph:folder-open-duotone scale-120'
35-
: 'i-ph:folder-simple-duotone scale-120'
34+
? 'i-catppuccin-folder-open'
35+
: 'i-catppuccin-folder'
3636
}
3737
for (const { match, icon } of FILE_ICONS) {
3838
if (match.test(props.path))
3939
return icon
4040
}
41-
return 'i-ph:file-duotone scale-120'
41+
return 'i-catppuccin-file'
4242
})
4343
</script>
4444

4545
<template>
46-
<div :class="icon" />
46+
<div :class="icon" light="brightness-60 hue-rotate-180 invert-100 saturate-200" scale-110 />
4747
</template>

components/PanelEditorFileSystemTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const folderCaret = computed(() => {
5757
:style="{
5858
paddingLeft: `${0.2 + 0.8 * (props.depth)}rem`,
5959
}"
60-
:class="isFileSelected ? 'bg-active' : 'saturate-0 text-faded'"
60+
:class="isFileSelected ? 'bg-active' : 'text-faded'"
6161
w-full flex items-center gap-1 px2 py1 text-left text-sm
6262
@click="handleClick"
6363
>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"@antfu/eslint-config": "^2.26.0",
39+
"@iconify-json/catppuccin": "^1.1.4",
3940
"@iconify-json/logos": "^1.1.44",
4041
"@iconify-json/ph": "^1.1.14",
4142
"@iconify-json/svg-spinners": "^1.1.3",

pnpm-lock.yaml

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)