Skip to content

Use defined colour for a language when available

What does this MR do?

This MR changes the colours of the different languages in the language graph. It now uses the colour set in Linguist instead of the first six characters of the SHA256'd language name where possible. If Linguist has no colour defined for a given language, it falls back to the old method of finding a colour.

I talked with @connorshea about creating this MR on Twitter a few hours earlier. Here's also an older tweet from May where we discussed some possible improvements to the graph.

Are there points in the code the reviewer needs to double check?

Hopefully none ;)

Why was this MR needed?

Aesthetics.

Screenshots (if relevant)

Before:

language_colours_before

After:

language_colours_after

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports