fix(LangChain Code Node): Fix icon in dark mode (no-changelog) (#9863)

Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-06-27 12:09:43 +02:00 committed by GitHub
parent 4008c147d7
commit a43d6f0c5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 8 deletions

View file

@ -120,6 +120,7 @@ export class Code implements INodeType {
displayName: 'LangChain Code', displayName: 'LangChain Code',
name: 'code', name: 'code',
icon: 'fa:code', icon: 'fa:code',
iconColor: 'black',
group: ['transform'], group: ['transform'],
version: 1, version: 1,
description: 'LangChain Code Node', description: 'LangChain Code Node',

View file

@ -79,16 +79,19 @@
--color-sticky-border-7: var(--prim-gray-670); --color-sticky-border-7: var(--prim-gray-670);
// NodeIcon // NodeIcon
--color-node-icon-gray: var(--prim-gray-200); --color-node-icon-gray: var(--prim-gray-120);
--color-node-icon-black: var(--prim-gray-70); --color-node-icon-black: var(--prim-gray-10);
--color-node-icon-blue: #766dfb; --color-node-icon-blue: #898fff;
--color-node-icon-dark-blue: #6275ad; --color-node-icon-light-blue: #58abff;
--color-node-icon-dark-blue: #7ba7ff;
--color-node-icon-orange-red: var(--prim-color-primary); --color-node-icon-orange-red: var(--prim-color-primary);
--color-node-icon-pink-red: #f85d82;
--color-node-icon-red: var(--prim-color-alt-k); --color-node-icon-red: var(--prim-color-alt-k);
--color-node-icon-light-green: #20b69e; --color-node-icon-light-green: #20b69e;
--color-node-icon-green: #38cb7a;
--color-node-icon-dark-green: #86decc; --color-node-icon-dark-green: #86decc;
--color-node-icon-purple: #9b6dd5; --color-node-icon-purple: #9b6dd5;
--color-node-icon-crimson: #d05876; --color-node-icon-crimson: #f188a2;
// Expressions, autocomplete, infobox // Expressions, autocomplete, infobox
--color-valid-resolvable-foreground: var(--prim-color-alt-a-tint-300); --color-valid-resolvable-foreground: var(--prim-color-alt-a-tint-300);

View file

@ -67,6 +67,7 @@ const versionDescription: INodeTypeDescription = {
displayName: 'Email Trigger (IMAP)', displayName: 'Email Trigger (IMAP)',
name: 'emailReadImap', name: 'emailReadImap',
icon: 'fa:inbox', icon: 'fa:inbox',
iconColor: 'green',
group: ['trigger'], group: ['trigger'],
version: 2, version: 2,
description: 'Triggers the workflow when a new email is received', description: 'Triggers the workflow when a new email is received',

View file

@ -310,7 +310,7 @@ type ICredentialHttpRequestNode = {
export interface ICredentialType { export interface ICredentialType {
name: string; name: string;
displayName: string; displayName: string;
icon?: Themed<Icon>; icon?: Icon;
iconUrl?: Themed<string>; iconUrl?: Themed<string>;
extends?: string[]; extends?: string[];
properties: INodeProperties[]; properties: INodeProperties[];
@ -1571,13 +1571,15 @@ export type NodeIconColor =
| 'azure' | 'azure'
| 'purple' | 'purple'
| 'crimson'; | 'crimson';
export type Icon = `fa:${string}` | `file:${string}` | `node:${string}`;
export type Themed<T> = T | { light: T; dark: T }; export type Themed<T> = T | { light: T; dark: T };
export type IconRef = `fa:${string}` | `node:${string}.${string}`;
export type IconFile = `file:${string}.png` | `file:${string}.svg`;
export type Icon = IconRef | Themed<IconFile>;
export interface INodeTypeBaseDescription { export interface INodeTypeBaseDescription {
displayName: string; displayName: string;
name: string; name: string;
icon?: Themed<Icon>; icon?: Icon;
iconColor?: NodeIconColor; iconColor?: NodeIconColor;
iconUrl?: Themed<string>; iconUrl?: Themed<string>;
badgeIconUrl?: Themed<string>; badgeIconUrl?: Themed<string>;