mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user