mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 02:08:12 +08:00
Show red connectors on a type-erroring node and accurate connector colors upstream of it (#3110)
* Refactor TypeSource * Add complete valid types * Add invalid type * Improve valid/complete types and disconnecting * Code review * Return types on error --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
7d739c4542
commit
06484ef4e0
@@ -129,6 +129,8 @@
|
||||
--color-data-gradient-dim: #6c489b;
|
||||
--color-data-typography: #eea7a7;
|
||||
--color-data-typography-dim: #955252;
|
||||
--color-data-invalid: #d6536e; // Same as --color-error-red
|
||||
--color-data-invalid-dim: #a7324a;
|
||||
|
||||
--color-none: white;
|
||||
--color-none-repeat: no-repeat;
|
||||
|
||||
@@ -176,7 +176,7 @@ export type ContextMenuInformation = {
|
||||
contextMenuData: "CreateNode" | { type: "CreateNode"; compatibleType: string } | { nodeId: bigint; currentlyIsNode: boolean };
|
||||
};
|
||||
|
||||
export type FrontendGraphDataType = "General" | "Number" | "Artboard" | "Graphic" | "Raster" | "Vector" | "Color";
|
||||
export type FrontendGraphDataType = "General" | "Number" | "Artboard" | "Graphic" | "Raster" | "Vector" | "Color" | "Invalid";
|
||||
|
||||
export class FrontendGraphInput {
|
||||
readonly dataType!: FrontendGraphDataType;
|
||||
|
||||
Reference in New Issue
Block a user