Skip to content

Commit

Permalink
docs(color): add comment about title color
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelass committed Jul 31, 2023
1 parent a1a2604 commit 53486be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ app.registerExtension({
node.bgcolor = event.target.value;
node.color = shadeHexColor(node.bgcolor);
// TODO: check if we can adjust this
// const textColor = getContrastColor(node.bgcolor);
// The method described in the docs does not work
// https://github.com/jagenjo/litegraph.js/tree/master/guides#custom-node-appearance
// node.text_color = getContrastColor(node.bgcolor);

node.setDirtyCanvas(true, true);
},
}),
Expand Down

0 comments on commit 53486be

Please sign in to comment.