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
New color generator algorithm #8535
Conversation
sure |
@skjnldsv before & after screenshots would be appreciated for quicker comparison and easier design review. :) |
Of course :) |
Hm, those look a bit dark and gloomy. How about we instead simply use the Material design color palette? https://material.io/guidelines/style/color.html#color-color-palette We could use all of the colors which work with the white text on them (except the 900 values cause they are a bit too dark). What do you think? |
@jancborchardt the main goal was to use stuff with the nextcloud color. Nonetheless, if you want to try new colours generation, you can play with the values in https://github.com/nextcloud/server/pull/8535/files#diff-f0151c05e04ac2dddb3c73f949683689R100 Just find a red, yellow and blue you like and the generator will complete the missing colors according to your demand :) Here is a live version so you can try it: https://codepen.io/skjnldsv/pen/PQOwQm |
Hmm ok, in the Codepen it actually looks fine. Then since it’s an improvement over the current way, let’s go for it. :) |
Yeah, maybe too much colors in the same window isn't the best way to overview this pr! :/ |
I like it 👍 |
Codecov Report
@@ Coverage Diff @@
## master #8535 +/- ##
=========================================
Coverage ? 51.33%
Complexity ? 25288
=========================================
Files ? 1537
Lines ? 87127
Branches ? 0
=========================================
Hits ? 44729
Misses ? 42398
Partials ? 0
|
@pixelipo could you propose three colours and post the screenshotted palette here please? |
@pixelipo I understand your point but I disagree with your choice. The colours should not stand out of the page that much and we should use all of the existing tones (r g & b). Well, it's my opinion :) |
@skjnldsv those colours are still complementary, which means they will "look good" with our brand colour. The whole point of thir PR is to paint non-UI elements - content, that is to say - to be quickly recognizible. By the way, you can try larger angles to "grab" a larger portion of the spectrum, e.g. http://paletton.com/#uid=63t0X0k++IruKZLQU+V+Wtt+an5 |
Like @pixelipo, I would not use the primary colour as one of the base colours. However, I also agree with @skjnldsv that it would be better to use a broader set of tones, and with @jancborchardt that we should only use colours on which white is legible. Moreover, the colours should not be hardcoded based on the Nextcloud colour, but depend on whichever primary colour is set in the theme. It may be possible to use triads/tetrads to always get the best base colours based on the primary colour that meets all those requeriments, I do not know (but I am probably asking for too much :-P ) . Here is an alternative idea (totally untested, probably stupid :-P so feel free to ignore it ;-) ) to fulfill all those conditions:
|
I have to more variants for consideration:
|
That looks best to me, we have no conflict with colors that are to similar to the primary color (NC-blue) and have a variety of colors, not just using red-ish ones. |
Could we take a position on this? :) |
@nextcloud/designers your input is required |
Anyway
looks fine to me. |
As already said tetrad (Codepen) is more pink/red looks best to me since we don't have collisions with the nextcloud color there. But no strong opinion there, since the others are also a big improvement to the previous color generation mode in terms of contrast and readability. |
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
308ed1e
to
4eb55bc
Compare
Then, let's go for this :) |
Hmm … I get the reasoning @pixelipo, and it does look nice. However I see 2 problems:
|
@jancborchardt no, the current theming color is not taken into consideration for now! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the current set and makes sense 👍 Let's get this in and then iterate on this if it is totally off.
Edit: I meant the color set from this comment here: #8535 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for the first version as well from my side
4eb55bc
to
275b986
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also think the original proposal is good and we can always adjust.
For Contacts which have a picture set, we should use a big&blurred version of that picture as header background anyway. :)
Fix #1747
Chart for 1M generated hash with 20 colors spread
@rullzer do you want me to update the php algorithm you used to generate all avatars?