FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

Use node color for edges #1382

Open wmertens opened 4 years ago

wmertens commented 4 years ago

It would be nice if the edges could be colored according to their two nodes - a gradient between the colors. That would make overlapping edges easier to decypher:

image

It would be immediately obvious that the diagonal edge is not connected to the top-right node here.

jung-kim commented 4 years ago

I like the idea, but two problems.

  1. in case of overlap, one will simply on top of another edge and would not help with disambiguation.
  2. what about the edge between the node that has different colors?
wmertens commented 4 years ago

For the edge between two colors I'd love to see a gradient, which is different from the solid color edges at almost every point

For the overlapping, I think that the only problem would arise when two edges are fully on the same trajectory. Then it would be important to paint the edges together with their nodes, so that overlapping edges would also overlap nodes and make the overlap more obvious.

Either way, wouldn't it already be an improvement on the current situation, even if it may not be perfect yet?