Color of Graph View node

Hi, there! I want to ask how the color of the nodes in the graph view is determined? I see some nodes in the graph view are colored, I’m not familiar with clojure, from the source code it seems to be related to the node’s hash and parent. Want to ask for a more detailed explanation about this? And is it possible to manually control the colors?

9 Likes


Some node may have color as shown above.

1 Like

Would be interesed in this as well!

1 Like

I would be interested in how nodes are colored too. Manually controlling the colors of nodes is what I need for my use case!

3 Likes

Has anyone figured this out? I also want to know.

1 Like

hi!
I do also look for being able to custom Graph nodes colorus.
My idea is that the files don’t exist yet on the graph nodes are different colors. and as more notes get in time the size of that node increases, and as I see these nodes “develop” and maybe need review or MOC creation.

I think i found the corresponding file, but one would need to formulate ‘human’ readable documentation out of the information https://github.com/logseq/logseq/blob/master/src/main/frontend/extensions/graph/pixi.cljs

1 Like

hey Logseq developers!
Can you support us, please?
We (community) do see need of controlling nodes colors manualy.
My case is following:

  • I used to create ongoing links very often, this act for me more as keyword. When I do use particular outoing keyword offen I would like to make that node bid and red - this would give me sign, thath hey! you have important keyword you need to update that empty page as this seems to be important for you.
2 Likes