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

@@ -16,7 +16,7 @@ export class ConvertToFile implements INodeType {
description: INodeTypeDescription = {
displayName: 'Convert to File',
name: 'convertToFile',
icon: 'file:convertToFile.svg',
icon: { light: 'file:convertToFile.svg', dark: 'file:convertToFile.dark.svg' },
group: ['input'],
version: [1, 1.1],
description: 'Convert JSON data to binary data',

View File

@@ -0,0 +1,5 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.7619 2C13.2437 2 12.8236 2.42009 12.8236 2.93831V15.2526C13.3199 15.4643 13.7851 15.772 14.191 16.1757L21.2283 23.1739C22.0548 23.9958 22.5195 25.1132 22.5195 26.2788C22.5195 27.4443 22.0548 28.5618 21.2283 29.3837L14.191 36.3819C13.785 36.7856 13.3199 37.0932 12.8236 37.305V37.3527C12.8236 37.8709 13.2437 38.291 13.7619 38.291H39.0617C39.5799 38.291 40 37.8709 40 37.3527L40 15.794H27.1443C26.6261 15.794 26.206 15.3739 26.206 14.8557V2H13.7619Z" fill="#766DFB"/>
<path d="M28.8645 2C28.7781 2 28.7081 2.07002 28.7081 2.15639V12.8227C28.7081 13.0818 28.9182 13.2919 29.1773 13.2919H39.8436C39.93 13.2919 40 13.2219 40 13.1355L40 12.6263C40 12.3778 39.9014 12.1395 39.726 11.9636L30.061 2.27561C29.885 2.09916 29.646 2 29.3967 2H28.8645Z" fill="#766DFB"/>
<path d="M9.77268 34.6003C9.04186 33.8654 9.04517 32.6772 9.78007 31.9464L13.6315 28.1163L0.938311 28.1163C0.420096 28.1163 -2.26519e-08 27.6962 0 27.178L8.20297e-08 25.3014C1.04682e-07 24.7832 0.420095 24.3631 0.938311 24.3631H13.5529L9.78007 20.6112C9.04517 19.8804 9.04186 18.6922 9.77268 17.9573C10.5035 17.2224 11.6917 17.2191 12.4266 17.9499L19.4639 24.9481C19.8181 25.3004 20.0173 25.7793 20.0173 26.2788C20.0173 26.7783 19.8181 27.2572 19.4639 27.6095L12.4266 34.6077C11.6917 35.3385 10.5035 35.3352 9.77268 34.6003Z" fill="#766DFB"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -1,12 +1,5 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1147_463)">
<path d="M170 39.8081C170 33.2867 175.287 28 181.808 28H338.41V189.59C338.41 196.218 343.782 201.59 350.41 201.59H512L512 472.893C512 479.415 506.713 484.701 500.192 484.701H181.808C177.972 484.701 174.564 482.873 172.407 480.039C175.619 477.958 178.665 475.515 181.488 472.708L271.488 383.208C282.057 372.697 288 358.406 288 343.5C288 328.594 282.057 314.303 271.488 303.792L181.488 214.292C177.969 210.793 174.103 207.858 170 205.487V39.8081Z" fill="#2244FF"/>
<path d="M369.898 34C369.898 30.6863 372.584 28 375.898 28H378.564C381.7 28 384.708 29.2479 386.923 31.4684L508.551 153.386C510.76 155.6 512 158.599 512 161.726L512 164.102C512 167.416 509.314 170.102 506 170.102H375.898C372.584 170.102 369.898 167.416 369.898 164.102V34Z" fill="#2244FF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M125.077 415.982C115.678 425.329 115.636 440.525 124.982 449.923C134.329 459.322 149.525 459.364 158.923 450.018L248.923 360.518C253.453 356.013 256 349.888 256 343.5C256 337.112 253.453 330.987 248.923 326.482L158.923 236.982C149.525 227.636 134.329 227.678 124.982 237.077C115.636 246.475 115.678 261.671 125.077 271.018L173.327 319L12 319C5.37257 319 -4.12516e-06 324.373 -4.41485e-06 331L-5.46392e-06 355C-5.75362e-06 361.627 5.37258 367 12 367L174.333 367L125.077 415.982Z" fill="#2244FF"/>
</g>
<defs>
<clipPath id="clip0_1147_463">
<rect width="512" height="512" fill="white"/>
</clipPath>
</defs>
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.7619 2C13.2437 2 12.8236 2.42009 12.8236 2.93831V15.2526C13.3199 15.4643 13.7851 15.772 14.191 16.1757L21.2283 23.1739C22.0548 23.9958 22.5195 25.1132 22.5195 26.2788C22.5195 27.4443 22.0548 28.5618 21.2283 29.3837L14.191 36.3819C13.785 36.7856 13.3199 37.0932 12.8236 37.305V37.3527C12.8236 37.8709 13.2437 38.291 13.7619 38.291H39.0617C39.5799 38.291 40 37.8709 40 37.3527L40 15.794H27.1443C26.6261 15.794 26.206 15.3739 26.206 14.8557V2H13.7619Z" fill="#3A42E9"/>
<path d="M28.8645 2C28.7781 2 28.7081 2.07002 28.7081 2.15639V12.8227C28.7081 13.0818 28.9182 13.2919 29.1773 13.2919H39.8436C39.93 13.2919 40 13.2219 40 13.1355L40 12.6263C40 12.3778 39.9014 12.1395 39.726 11.9636L30.061 2.27561C29.885 2.09916 29.646 2 29.3967 2H28.8645Z" fill="#3A42E9"/>
<path d="M9.77268 34.6003C9.04186 33.8654 9.04517 32.6772 9.78007 31.9464L13.6315 28.1163L0.938311 28.1163C0.420096 28.1163 -2.26519e-08 27.6962 0 27.178L8.20297e-08 25.3014C1.04682e-07 24.7832 0.420095 24.3631 0.938311 24.3631H13.5529L9.78007 20.6112C9.04517 19.8804 9.04186 18.6922 9.77268 17.9573C10.5035 17.2224 11.6917 17.2191 12.4266 17.9499L19.4639 24.9481C19.8181 25.3004 20.0173 25.7793 20.0173 26.2788C20.0173 26.7783 19.8181 27.2572 19.4639 27.6095L12.4266 34.6077C11.6917 35.3385 10.5035 35.3352 9.77268 34.6003Z" fill="#3A42E9"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -14,7 +14,7 @@ export class ExtractFromFile implements INodeType {
description: INodeTypeDescription = {
displayName: 'Extract from File',
name: 'extractFromFile',
icon: 'file:extractFromFile.svg',
icon: { light: 'file:extractFromFile.svg', dark: 'file:extractFromFile.dark.svg' },
group: ['input'],
version: 1,
description: 'Convert binary data to JSON',

View File

@@ -0,0 +1,5 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.9375 2C0.419733 2 0 2.41973 0 2.9375V37.3221C0 37.8399 0.419733 38.2596 0.9375 38.2596H26.2154C26.7332 38.2596 27.1529 37.8399 27.1529 37.3221L27.1529 30.6719L16.7969 30.6719C14.8984 30.6719 13.3594 29.1329 13.3594 27.2344V25.3594C13.3594 23.4609 14.8984 21.9219 16.7969 21.9219H27.1529L27.1529 15.7821H14.3083C13.7906 15.7821 13.3708 15.3624 13.3708 14.8446V2H0.9375Z" fill="#6275AD"/>
<path d="M16.0271 2C15.9408 2 15.8708 2.06996 15.8708 2.15625V12.8134C15.8708 13.0723 16.0807 13.2821 16.3396 13.2821H26.9967C27.083 13.2821 27.1529 13.2122 27.1529 13.1259L27.1529 12.6171C27.1529 12.3688 27.0545 12.1307 26.8791 11.955L17.2225 2.27538C17.0466 2.09908 16.8079 2 16.5588 2H16.0271Z" fill="#6275AD"/>
<path d="M29.7642 34.6503C29.034 33.916 29.0374 32.7288 29.7716 31.9986L33.6197 28.1719L16.7969 28.1719C16.2791 28.1719 15.8594 27.7521 15.8594 27.2344V25.3594C15.8594 24.8416 16.2791 24.4219 16.7969 24.4219L33.5412 24.4219L29.7716 20.6733C29.0374 19.9431 29.034 18.7559 29.7642 18.0216C30.4944 17.2874 31.6816 17.284 32.4159 18.0142L39.4471 25.0064C39.801 25.3583 40 25.8368 40 26.3359C40 26.835 39.801 27.3135 39.4471 27.6655L32.4159 34.6576C31.6816 35.3878 30.4944 35.3845 29.7642 34.6503Z" fill="#6275AD"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1,5 +1,5 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 39.8158C0 33.2901 5.28667 28 11.8081 28H168.41V189.704C168.41 196.331 173.782 201.704 180.41 201.704H342L342 287H268C243.699 287 224 306.699 224 331V355C224 379.301 243.699 399 268 399L342 399L342 473.184C342 479.71 336.713 485 330.192 485H11.8081C5.28667 485 0 479.71 0 473.184V39.8158Z" fill="#003355"/>
<path d="M199.898 34C199.898 30.6863 202.584 28 205.898 28H208.564C211.7 28 214.708 29.2487 216.923 31.4707L338.551 153.468C340.76 155.683 342 158.684 342 161.813L342 164.195C342 167.509 339.314 170.195 336 170.195H205.898C202.584 170.195 199.898 167.509 199.898 164.195V34Z" fill="#003355"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M381.077 415.982C371.678 425.329 371.636 440.525 380.982 449.923C390.329 459.322 405.525 459.364 414.923 450.018L504.923 360.518C509.453 356.013 512 349.888 512 343.5C512 337.112 509.453 330.987 504.923 326.482L414.923 236.982C405.525 227.636 390.329 227.678 380.982 237.077C371.636 246.475 371.678 261.671 381.077 271.018L429.327 319L268 319C261.373 319 256 324.373 256 331L256 355C256 361.627 261.373 367 268 367L430.333 367L381.077 415.982Z" fill="#003355"/>
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.9375 2C0.419733 2 0 2.41973 0 2.9375V37.3221C0 37.8399 0.419733 38.2596 0.9375 38.2596H26.2154C26.7332 38.2596 27.1529 37.8399 27.1529 37.3221L27.1529 30.6719L16.7969 30.6719C14.8984 30.6719 13.3594 29.1329 13.3594 27.2344V25.3594C13.3594 23.4609 14.8984 21.9219 16.7969 21.9219H27.1529L27.1529 15.7821H14.3083C13.7906 15.7821 13.3708 15.3624 13.3708 14.8446V2H0.9375Z" fill="#353F6E"/>
<path d="M16.0271 2C15.9408 2 15.8708 2.06996 15.8708 2.15625V12.8134C15.8708 13.0723 16.0807 13.2821 16.3396 13.2821H26.9967C27.083 13.2821 27.1529 13.2122 27.1529 13.1259L27.1529 12.6171C27.1529 12.3688 27.0545 12.1307 26.8791 11.955L17.2225 2.27538C17.0466 2.09908 16.8079 2 16.5588 2H16.0271Z" fill="#353F6E"/>
<path d="M29.7642 34.6503C29.034 33.916 29.0374 32.7288 29.7716 31.9986L33.6197 28.1719L16.7969 28.1719C16.2791 28.1719 15.8594 27.7521 15.8594 27.2344V25.3594C15.8594 24.8416 16.2791 24.4219 16.7969 24.4219L33.5412 24.4219L29.7716 20.6733C29.0374 19.9431 29.034 18.7559 29.7642 18.0216C30.4944 17.2874 31.6816 17.284 32.4159 18.0142L39.4471 25.0064C39.801 25.3583 40 25.8368 40 26.3359C40 26.835 39.801 27.3135 39.4471 27.6655L32.4159 34.6576C31.6816 35.3878 30.4944 35.3845 29.7642 34.6503Z" fill="#353F6E"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB