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

@@ -309,8 +309,8 @@ type ICredentialHttpRequestNode = {
export interface ICredentialType {
name: string;
displayName: string;
icon?: string;
iconUrl?: string;
icon?: Themed<Icon>;
iconUrl?: Themed<string>;
extends?: string[];
properties: INodeProperties[];
documentationUrl?: string;
@@ -1546,11 +1546,31 @@ export interface IWorkflowIssues {
[key: string]: INodeIssues;
}
export type NodeIconColor =
| 'gray'
| 'black'
| 'blue'
| 'light-blue'
| 'dark-blue'
| 'orange'
| 'orange-red'
| 'pink-red'
| 'red'
| 'light-green'
| 'green'
| 'dark-green'
| 'azure'
| 'purple'
| 'crimson';
export type Icon = `fa:${string}` | `file:${string}` | `node:${string}`;
export type Themed<T> = T | { light: T; dark: T };
export interface INodeTypeBaseDescription {
displayName: string;
name: string;
icon?: string;
iconUrl?: string;
icon?: Themed<Icon>;
iconColor?: NodeIconColor;
iconUrl?: Themed<string>;
badgeIconUrl?: string;
group: string[];
description: string;