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

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

View File

@@ -0,0 +1,4 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.45172 33.7906L28.3389 19.9196L7.45172 5.96777C6.56472 5.40313 6 4.35496 6 3.22569V0L31.3229 16.4516C32.5325 17.258 33.1777 18.5485 33.1777 19.9196C33.1777 21.2903 32.4517 22.5809 31.3229 23.3872L6 40V36.5323C6 35.4839 6.48422 34.4357 7.45172 33.7906Z" fill="white"/>
<path d="M19.4679 21.0485C18.3391 21.7741 16.8871 21.7741 15.7583 21.0485L12.8549 19.1936L6 14.5967V11.9354C6 10.8873 7.20961 10.3226 8.01612 10.8873L21.242 19.8388L19.4679 21.0485Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 881 B

View File

@@ -0,0 +1,4 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.45172 33.7906L28.3389 19.9196L7.45172 5.96777C6.56472 5.40313 6 4.35496 6 3.22569V0L31.3229 16.4516C32.5325 17.258 33.1777 18.5485 33.1777 19.9196C33.1777 21.2903 32.4517 22.5809 31.3229 23.3872L6 40V36.5323C6 35.4839 6.48422 34.4357 7.45172 33.7906Z" fill="#004CFF"/>
<path d="M19.4679 21.0485C18.3391 21.7741 16.8871 21.7741 15.7583 21.0485L12.8549 19.1936L6 14.5967V11.9354C6 10.8873 7.20961 10.3226 8.01612 10.8873L21.242 19.8388L19.4679 21.0485Z" fill="#004CFF"/>
</svg>

After

Width:  |  Height:  |  Size: 584 B