feat: Add support for dark mode node icons and colors (#9412)

Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
This commit is contained in:
Elias Meire
2024-06-06 13:34:30 +02:00
committed by GitHub
parent 68e856d155
commit 600013a1ab
294 changed files with 1421 additions and 519 deletions

View File

@@ -24,7 +24,7 @@ export class Cockpit implements INodeType {
displayName: 'Cockpit',
name: 'cockpit',
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
icon: 'file:cockpit.png',
icon: { light: 'file:cockpit.svg', dark: 'file:cockpit.dark.svg' },
group: ['output'],
version: 1,
subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',

View File

@@ -0,0 +1,3 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.9564 4L17.6629 9.70644L9.05633 18.3127C6.81125 20.558 8.99407 22.7406 11.2392 20.4953L24.0863 7.64837C32.4436 -0.708884 45.696 12.544 37.339 20.9011L33.5036 24.7364L38.9293 30.1621L32.4434 36.6481L21.966 26.1707L31.6326 16.5042C33.4619 14.6749 30.8738 12.0868 29.0445 13.9158L15.5113 27.4493C6.96748 34.8708 -5.00689 23.0211 2.22735 14.1656L11.9564 4Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 834 B

View File

@@ -0,0 +1,3 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.9564 4L17.6629 9.70644L9.05633 18.3127C6.81125 20.558 8.99407 22.7406 11.2392 20.4953L24.0863 7.64837C32.4436 -0.708884 45.696 12.544 37.339 20.9011L33.5036 24.7364L38.9293 30.1621L32.4434 36.6481L21.966 26.1707L31.6326 16.5042C33.4619 14.6749 30.8738 12.0868 29.0445 13.9158L15.5113 27.4493C6.96748 34.8708 -5.00689 23.0211 2.22735 14.1656L11.9564 4Z" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 484 B