mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
update pull colors
This commit is contained in:
parent
a20ff28bca
commit
f4ec2e46ca
|
@ -67,6 +67,11 @@ export const CONNECTOR_PAINT_STYLE_DEFAULT: PaintStyle = {
|
||||||
outlineStroke: 'transparent',
|
outlineStroke: 'transparent',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const CONNECTOR_PAINT_STYLE_PULL: PaintStyle = {
|
||||||
|
...CONNECTOR_PAINT_STYLE_DEFAULT,
|
||||||
|
stroke: getStyleTokenValue('--color-foreground-xdark'),
|
||||||
|
};
|
||||||
|
|
||||||
export const CONNECTOR_PAINT_STYLE_PRIMARY = {
|
export const CONNECTOR_PAINT_STYLE_PRIMARY = {
|
||||||
...CONNECTOR_PAINT_STYLE_DEFAULT,
|
...CONNECTOR_PAINT_STYLE_DEFAULT,
|
||||||
stroke: getStyleTokenValue('--color-primary'),
|
stroke: getStyleTokenValue('--color-primary'),
|
||||||
|
@ -555,7 +560,7 @@ export const showDropConnectionState = (connection: Connection, targetEndpoint?:
|
||||||
export const showPullConnectionState = (connection: Connection) => {
|
export const showPullConnectionState = (connection: Connection) => {
|
||||||
if (connection && connection.connector) {
|
if (connection && connection.connector) {
|
||||||
connection.connector.resetTargetEndpoint();
|
connection.connector.resetTargetEndpoint();
|
||||||
connection.setPaintStyle(CONNECTOR_PAINT_STYLE_DEFAULT);
|
connection.setPaintStyle(CONNECTOR_PAINT_STYLE_PULL);
|
||||||
showOverlay(connection, OVERLAY_DROP_NODE_ID);
|
showOverlay(connection, OVERLAY_DROP_NODE_ID);
|
||||||
hideOverlay(connection, OVERLAY_ENDPOINT_ARROW_ID);
|
hideOverlay(connection, OVERLAY_ENDPOINT_ARROW_ID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue