mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
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:
parent
4008c147d7
commit
a43d6f0c5e
|
@ -120,6 +120,7 @@ export class Code implements INodeType {
|
|||
displayName: 'LangChain Code',
|
||||
name: 'code',
|
||||
icon: 'fa:code',
|
||||
iconColor: 'black',
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
description: 'LangChain Code Node',
|
||||
|
|
|
@ -79,16 +79,19 @@
|
|||
--color-sticky-border-7: var(--prim-gray-670);
|
||||
|
||||
// NodeIcon
|
||||
--color-node-icon-gray: var(--prim-gray-200);
|
||||
--color-node-icon-black: var(--prim-gray-70);
|
||||
--color-node-icon-blue: #766dfb;
|
||||
--color-node-icon-dark-blue: #6275ad;
|
||||
--color-node-icon-gray: var(--prim-gray-120);
|
||||
--color-node-icon-black: var(--prim-gray-10);
|
||||
--color-node-icon-blue: #898fff;
|
||||
--color-node-icon-light-blue: #58abff;
|
||||
--color-node-icon-dark-blue: #7ba7ff;
|
||||
--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-light-green: #20b69e;
|
||||
--color-node-icon-green: #38cb7a;
|
||||
--color-node-icon-dark-green: #86decc;
|
||||
--color-node-icon-purple: #9b6dd5;
|
||||
--color-node-icon-crimson: #d05876;
|
||||
--color-node-icon-crimson: #f188a2;
|
||||
|
||||
// Expressions, autocomplete, infobox
|
||||
--color-valid-resolvable-foreground: var(--prim-color-alt-a-tint-300);
|
||||
|
|
|
@ -67,6 +67,7 @@ const versionDescription: INodeTypeDescription = {
|
|||
displayName: 'Email Trigger (IMAP)',
|
||||
name: 'emailReadImap',
|
||||
icon: 'fa:inbox',
|
||||
iconColor: 'green',
|
||||
group: ['trigger'],
|
||||
version: 2,
|
||||
description: 'Triggers the workflow when a new email is received',
|
||||
|
|
|
@ -310,7 +310,7 @@ type ICredentialHttpRequestNode = {
|
|||
export interface ICredentialType {
|
||||
name: string;
|
||||
displayName: string;
|
||||
icon?: Themed<Icon>;
|
||||
icon?: Icon;
|
||||
iconUrl?: Themed<string>;
|
||||
extends?: string[];
|
||||
properties: INodeProperties[];
|
||||
|
@ -1571,13 +1571,15 @@ export type NodeIconColor =
|
|||
| 'azure'
|
||||
| 'purple'
|
||||
| 'crimson';
|
||||
export type Icon = `fa:${string}` | `file:${string}` | `node:${string}`;
|
||||
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 {
|
||||
displayName: string;
|
||||
name: string;
|
||||
icon?: Themed<Icon>;
|
||||
icon?: Icon;
|
||||
iconColor?: NodeIconColor;
|
||||
iconUrl?: Themed<string>;
|
||||
badgeIconUrl?: Themed<string>;
|
||||
|
|
Loading…
Reference in a new issue