Skip to content

Commit

Permalink
Fixed some internal uses of deprecated properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lewis-ab committed Jul 29, 2024
1 parent 07afa36 commit 1220df1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/LGraphCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class LGraphCanvas {
this.title_text_font = `${LiteGraph.NODE_TEXT_SIZE}px Arial`;
this.inner_text_font = `normal ${LiteGraph.NODE_SUBTEXT_SIZE}px Arial`;
this.node_title_color = LiteGraph.NODE_TITLE_COLOR;
this.default_link_color = LiteGraph.LINK_COLOR;
this.default_link_color = LiteGraph.getStyleProperty('--link-color');
this.default_connection_color = {
input_off: '#778',
input_on: '#7F7', // "#BBD"
Expand Down Expand Up @@ -2576,10 +2576,10 @@ export class LGraphCanvas {

switch (connType) {
case LiteGraph.EVENT:
link_color = LiteGraph.EVENT_LINK_COLOR;
link_color = LiteGraph.getStyleProperty('--event-link-color');
break;
default:
link_color = LiteGraph.CONNECTING_LINK_COLOR;
link_color = LiteGraph.getStyleProperty('--connecting-link-color');
}

// the connection being dragged by the mouse
Expand Down
2 changes: 1 addition & 1 deletion src/core/litegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ LiteGraph.LGraphCanvas = LGraphCanvas;

// Bind this here because otherwise LiteGraph.EVENT_LINK_COLOR doesn't resolve:
LGraphCanvas.link_type_colors = {
'-1': LiteGraph.EVENT_LINK_COLOR,
'-1': LiteGraph.getStyleProperty('--event-link-color'),
number: '#AAA',
node: '#DCA',
};
Expand Down

0 comments on commit 1220df1

Please sign in to comment.