feat: pre-commit file and folder icons (#255)

This commit is contained in:
PraZ 2024-08-15 18:38:50 +02:00 committed by GitHub
parent d7eaee2b1e
commit cbbb238c6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 79 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="var(--vscode-ctp-text)" stroke-linecap="round" stroke-linejoin="round" d="M 4.5,4.5 H 12 c 0.828427,0 1.5,0.6715729 1.5,1.5 V 6.5 M 6,13.5 H 2 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="var(--vscode-ctp-yellow)" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="var(--vscode-ctp-yellow)" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.117541 V 9.9174375 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.8500275 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 839 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="var(--vscode-ctp-text)" stroke-linecap="round" stroke-linejoin="round" d="M 1.8748797,8.0004811 2.5606339,5.2574644 C 2.6719257,4.8122974 3.0719088,4.5 3.5307764,4.5 H 14.469224 c 0.552284,0 1,0.4477152 1,1 0,0.081762 -0.01003,0.163215 -0.02986,0.2425356 L 15.124325,7.0026989 M 6,13.5 H 2.0043488 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="var(--vscode-ctp-yellow)" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="var(--vscode-ctp-yellow)" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.11754 V 9.917437 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.850027 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 991 B

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<rect width="9.801" height="9.801" x="-4.901" y="6.413" fill="none" stroke="var(--vscode-ctp-yellow)" stroke-linecap="round" stroke-linejoin="round" rx="1.032" ry="1.032" transform="rotate(-45)" />
<path fill="none" stroke="var(--vscode-ctp-yellow)" stroke-linecap="round" stroke-linejoin="round" d="M 6.568546,10.627665 V 5.4297635 h 2.6192552 c 0,0 1.0761278,0.1570138 1.0761278,1.3806927 0,1.2236789 -1.0761279,1.4619098 -1.0761279,1.4619098 H 6.6631002" />
</svg>

After

Width:  |  Height:  |  Size: 554 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 4.5,4.5 H 12 c 0.828427,0 1.5,0.6715729 1.5,1.5 V 6.5 M 6,13.5 H 2 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.117541 V 9.9174375 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.8500275 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 790 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 1.8748797,8.0004811 2.5606339,5.2574644 C 2.6719257,4.8122974 3.0719088,4.5 3.5307764,4.5 H 14.469224 c 0.552284,0 1,0.4477152 1,1 0,0.081762 -0.01003,0.163215 -0.02986,0.2425356 L 15.124325,7.0026989 M 6,13.5 H 2.0043488 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.11754 V 9.917437 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.850027 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 942 B

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<rect width="9.801" height="9.801" x="-4.901" y="6.413" fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" rx="1.032" ry="1.032" transform="rotate(-45)" />
<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M 6.568546,10.627665 V 5.4297635 h 2.6192552 c 0,0 1.0761278,0.1570138 1.0761278,1.3806927 0,1.2236789 -1.0761279,1.4619098 -1.0761279,1.4619098 H 6.6631002" />
</svg>

After

Width:  |  Height:  |  Size: 520 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="#4c4f69" stroke-linecap="round" stroke-linejoin="round" d="M 4.5,4.5 H 12 c 0.828427,0 1.5,0.6715729 1.5,1.5 V 6.5 M 6,13.5 H 2 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="#df8e1d" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="#df8e1d" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.117541 V 9.9174375 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.8500275 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 790 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="#4c4f69" stroke-linecap="round" stroke-linejoin="round" d="M 1.8748797,8.0004811 2.5606339,5.2574644 C 2.6719257,4.8122974 3.0719088,4.5 3.5307764,4.5 H 14.469224 c 0.552284,0 1,0.4477152 1,1 0,0.081762 -0.01003,0.163215 -0.02986,0.2425356 L 15.124325,7.0026989 M 6,13.5 H 2.0043488 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="#df8e1d" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="#df8e1d" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.11754 V 9.917437 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.850027 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 942 B

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<rect width="9.801" height="9.801" x="-4.901" y="6.413" fill="none" stroke="#df8e1d" stroke-linecap="round" stroke-linejoin="round" rx="1.032" ry="1.032" transform="rotate(-45)" />
<path fill="none" stroke="#df8e1d" stroke-linecap="round" stroke-linejoin="round" d="M 6.568546,10.627665 V 5.4297635 h 2.6192552 c 0,0 1.0761278,0.1570138 1.0761278,1.3806927 0,1.2236789 -1.0761279,1.4619098 -1.0761279,1.4619098 H 6.6631002" />
</svg>

After

Width:  |  Height:  |  Size: 520 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="#cad3f5" stroke-linecap="round" stroke-linejoin="round" d="M 4.5,4.5 H 12 c 0.828427,0 1.5,0.6715729 1.5,1.5 V 6.5 M 6,13.5 H 2 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="#eed49f" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="#eed49f" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.117541 V 9.9174375 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.8500275 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 790 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="#cad3f5" stroke-linecap="round" stroke-linejoin="round" d="M 1.8748797,8.0004811 2.5606339,5.2574644 C 2.6719257,4.8122974 3.0719088,4.5 3.5307764,4.5 H 14.469224 c 0.552284,0 1,0.4477152 1,1 0,0.081762 -0.01003,0.163215 -0.02986,0.2425356 L 15.124325,7.0026989 M 6,13.5 H 2.0043488 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="#eed49f" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="#eed49f" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.11754 V 9.917437 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.850027 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 942 B

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<rect width="9.801" height="9.801" x="-4.901" y="6.413" fill="none" stroke="#eed49f" stroke-linecap="round" stroke-linejoin="round" rx="1.032" ry="1.032" transform="rotate(-45)" />
<path fill="none" stroke="#eed49f" stroke-linecap="round" stroke-linejoin="round" d="M 6.568546,10.627665 V 5.4297635 h 2.6192552 c 0,0 1.0761278,0.1570138 1.0761278,1.3806927 0,1.2236789 -1.0761279,1.4619098 -1.0761279,1.4619098 H 6.6631002" />
</svg>

After

Width:  |  Height:  |  Size: 520 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="#cdd6f4" stroke-linecap="round" stroke-linejoin="round" d="M 4.5,4.5 H 12 c 0.828427,0 1.5,0.6715729 1.5,1.5 V 6.5 M 6,13.5 H 2 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="#f9e2af" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="#f9e2af" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.117541 V 9.9174375 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.8500275 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 790 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="none" stroke="#cdd6f4" stroke-linecap="round" stroke-linejoin="round" d="M 1.8748797,8.0004811 2.5606339,5.2574644 C 2.6719257,4.8122974 3.0719088,4.5 3.5307764,4.5 H 14.469224 c 0.552284,0 1,0.4477152 1,1 0,0.081762 -0.01003,0.163215 -0.02986,0.2425356 L 15.124325,7.0026989 M 6,13.5 H 2.0043488 C 1.1715729,13.5 0.5,12.828427 0.5,12 V 3.5 c 0,-0.5522847 0.44771525,-1 1,-1 h 5 c 0.5522847,0 1,0.4477153 1,1 v 1" />
<rect width="6.034" height="6.034" x="-3.015" y="13.247" fill="none" stroke="#f9e2af" stroke-linecap="round" stroke-linejoin="round" rx=".635" ry=".635" transform="rotate(-45.004)" />
<path fill="none" stroke="#f9e2af" stroke-linecap="round" stroke-linejoin="round" d="M 10.619236,13.11754 V 9.917437 h 1.612342 c 0,0 0.662434,0.096666 0.662434,0.850027 0,0.753361 -0.662434,0.900029 -0.662434,0.900029 h -1.554136" />
</svg>

After

Width:  |  Height:  |  Size: 942 B

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<rect width="9.801" height="9.801" x="-4.901" y="6.413" fill="none" stroke="#f9e2af" stroke-linecap="round" stroke-linejoin="round" rx="1.032" ry="1.032" transform="rotate(-45)" />
<path fill="none" stroke="#f9e2af" stroke-linecap="round" stroke-linejoin="round" d="M 6.568546,10.627665 V 5.4297635 h 2.6192552 c 0,0 1.0761278,0.1570138 1.0761278,1.3806927 0,1.2236789 -1.0761279,1.4619098 -1.0761279,1.4619098 H 6.6631002" />
</svg>

After

Width:  |  Height:  |  Size: 520 B

View File

@ -1740,6 +1740,12 @@ const fileIcons: Record<string, {
'pssc',
],
},
'pre-commit': {
fileNames: [
'.pre-commit-config.yaml',
'.pre-commit-hooks.yaml',
],
},
'premake': {
fileNames: [
'premake4.lua',

View File

@ -467,6 +467,9 @@ const folderIcons: Record<string, {
'modules',
],
},
'pre-commit': {
folderNames: ['pre-commit-channel'],
},
'prisma': {
folderNames: ['prisma'],
},