-
Notifications
You must be signed in to change notification settings - Fork 16
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
Graph color palette #123
Comments
They are currently calculated based on the hash of the branch name, so always stable. They are picked from a set of pre-defined colors. These aren't super great though, some aren't quite readable - especially in light theme which we support now. Note that the background color is now also variable, so avoiding e.g.blue on blue entirely is difficult. Modifying by CSS is possible, but I don't think the branch names are exposed as class names (or are they?), so you could only change them all to the same color. The other properties like thickness can be tweaked with custom CSS option. Yep, the shadow color is too bright |
Jup, both good ideas! |
Hey again!
I was wondering how colors per branch are picked.
For example in this case I ended up with very low contrasty colors: red, orange, orange again, red again...
I think that what mhutchie.git-graph did was have a set of very high contrast colors and assign them from left to right, so at least the top of the graph would have 2/3 nicely different colors.
Here it seems that the colors are assigned per branch retrieved or something?
Also can the colors be tweaked in the CSS?
And the highlighted branch line background? line thickness? The subtle gray highlight looks a bit bad in a dark background.
Tagging #56 as colors should be part of the design
The text was updated successfully, but these errors were encountered: