mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
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:
@@ -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"] }}',
|
||||
|
||||
3
packages/nodes-base/nodes/Cockpit/cockpit.dark.svg
Normal file
3
packages/nodes-base/nodes/Cockpit/cockpit.dark.svg
Normal 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 |
3
packages/nodes-base/nodes/Cockpit/cockpit.svg
Normal file
3
packages/nodes-base/nodes/Cockpit/cockpit.svg
Normal 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 |
Reference in New Issue
Block a user