Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set node color and text? #26

Open
ruoru opened this issue May 31, 2018 · 1 comment
Open

how to set node color and text? #26

ruoru opened this issue May 31, 2018 · 1 comment

Comments

@ruoru
Copy link

ruoru commented May 31, 2018

i can not found the setting in code, good repo.

@ruoru ruoru changed the title how how to set node color 安迪 May 31, 2018
@ruoru ruoru changed the title how to set node color 安迪 how to set node color and text? May 31, 2018
@brienna
Copy link

brienna commented Dec 20, 2021

Node color can be set in src/galaxy/native/renderer.js.

You will see these colors:

var defaultNodeColor = 0xffffffff; // white
var highlightNodeColor = 0xff0000ff; // red

But also note that in both the colorNode and cls functions, it manually sets the node color to white, instead of using the defaultNodeColor variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants