Force visually distinguishable account colors#1434
Conversation
|
By analyzing the blame information on this pull request, we identified @ChristophWurst, @Gomez and @jancborchardt to be potential reviewers |
|
Hmm … either the value is too low or it’s not working. The colors are still very difficult to distinguish. One is |
|
The calcul is simple, if we divide by 40, we get (360/40) 9 different colors! And it's just a random possibility, the chance we get 2 exact same colors are as high as any other one. Or we should allow the user to change the hash we're using to generate the color therefore allow him to change the color he wants (but we keep the randomisation) |
|
The point is that the feel of the colors across ownCloud should be similar. So I would say we need to use the generator here. Let's maybe increase it to 30 to see if that works better? Or have a separate function for multi-color request with a variable amount of parameters – and the function ensures they are as distinct as possible. |
|
I feel like doing some terrible coding! :p |
|
Niice – yeah, that illustrates very well that we need the 40 value. With 30 still some green/turquoise and the rightmost pink colors are difficult to distinguish. |
|
Got it :) |
aab04fb to
d3f351f
Compare
|
Here you go! @jancborchardt ! |
|
Yeah, this is better! :) About the different colors, that’s why I suggested above:
And simply taking from the set of 9 above. That would be quite useful already for the multiple mail accounts and the calendar colors. :) |
|
tztztz… failing CI tests and @jancborchardt hits the merge button |
|
I AM JUST MACHINE TAKING ORDERS SEE MERGE BUTTON HIT IT |
|
ahahahahhaha |

Divide the hue value by 20, round it and multiply it again by 20.
This allows for (360/20) 18 differents colors.
@jancborchardt
Fix #1428