-
Notifications
You must be signed in to change notification settings - Fork 90
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
Make unread counter primary colour #3070
Conversation
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'd suggest that we use the primary-element colors so that if the primary color is a light grey for example, we fallback to a value that still has enough contrast.
At least in the docs, this is hardly even readable. But maybe the variables in the docs need an update, I didn't test with server though. |
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.
Is this how it's supposed to look like?
I think the contrast for the Normal Counter is terrible. @jancborchardt @nimishavijay Can you have a look, please?
no, it is suppose to look like my screenshot on the description |
yeah, maybe we need --color-primary-element-lighter, instead of light @juliushaertl ? |
Either that or rather adjust it so that it matches the calculation of |
Tested and works in combination with the server pr |
If this requires a server PR, it means it will only work with fixed servers. Since this affects a component already widely used, this will be quite problematic. It could mean that this component in nextcloud/vue 6.0.0 will only work with server 25 and above (unless nextcloud/server#33641 is backported and widely distributed). |
Yes, same issue as #3057 (comment). The plan is to have another major release v7 that will be Nextcloud 25+ only. |
Then let's not merge this until we have 6.0.0 stable release. Otherwise we need to backport every PR/fix to a stable6 branch already. |
We can add variables fallback. If they are not defined, they will use the second value |
I would prefer that over a server 25+ only nc/vue release. |
The fallback works, but could we maybe adjust the value of |
no sorry, thank you for checking it so carefully. |
Yep, it only works if you add a new css variable, which I thought y'all were doing for 25 :) |
so what do you propose instead of --color-nc-primary-element-light? |
Signed-off-by: greta <gretadoci@gmail.com>
13c9741
to
5ec5cd4
Compare
For reference in the comments as well, we can use -lighter here as the default and fallback to -light, as lighter is no longer present on the new nextcloud release then and the old -lighter color is close enough to the new one. |
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.
My only remark is that color is spelled without a u
With the help of the fallback this is no longer a breaking change, right? |
Yes. |
This totally breaks as shown on the screenshots above. In talk the unread counter for mentioned and unmentioned almost look the same apart from the broken font color that doesn't have enough contrast If you need a "primary" unread counter, you need to specify the Can we revert this? |
Only an issue with dark theme and highlighted counters -> #3249 |
tested manually on mail, i cannot connect to nc/vue
fixes #3054