-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Topbar icons and text are controlled by wrong variable #42954
Comments
cc @szaimen |
probably #42620 is a problem |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
No, the fix works correctly for the default themes which are more important then custom primary colors imho. In order to fix all the cases correclty, we would need to have another UI setting that allows to set the color (black or white) for the header icons independently and not calculate it from any other value. See #35482 (comment) |
I think to make the color background image dependent it would work to use: color: white;
filter: var(--background-image-invert-if-bright); Again this will not cover all cases especially for background images with shapes in different color. |
yes, that is why I pointed at #35482 (comment) |
Yes either each icon needs individual colors, or the background need a backdrop (see the comment below), or we simply ignore images that are not single color in the top area. |
but we actually do have a color associated with each pre-defined background. Which can be used for defining elements on a background like the app menu. server/apps/theming/lib/Service/BackgroundService.php Lines 57 to 71 in e5b0941
Then it is used in Cannot we then have separated background color and primary (aka elements) color? |
The problem is rather with custom primary colors. This also is taken into account for the color of the header icons which it should probably not be. However custom backgrounds are still broken because you cannot control the color of the header icons manually currently... |
Yes, but at least we may make app icons and text rely only on the background color, not on primary elements color. |
Indeed that sounds better |
I think we finally need to escape the primary-color-mixup-background-color rabbit hole. The text color on the app menu should be independent from any primary color. Primary is only for accents, while the background color might sometimes be related but it is not always. |
We may rename it or create a new variable, but anyway we have a color that represents the background color and store it together with the background image in presets... |
Meaning:
|
Having a good and full description of all the colors, variables, meanings we have and should have would be definitely helpful 😀 Taking into account user settings, custom colors, default color (Nextcloud Blue) and etc. |
Maybe I find some time to look into it, but I think a proper solution contains real separation between background-color and primary-color. Because:
This color is just a primary color that probably looks good on that background but e.g. the bright image has some dark yellow set as primary which then causes primary-text to be white -> white text on white image -> bad! |
Since milestone 28.0.2 is mentioned above: It's not fixed in 28.0.2 – counting on 28.0.3 – it's NOT fixed in 28.0.3 RC1. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@nursoda this is unrelated - happens because of the icon SVG of the dashboard app. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Duplicate of #43298 |
No this one is a different issue, this one is about the wrong color of the app bar icons when you select a different primary color. In the example using the default clouds background image + yellow primary color will set black text of the app menu entries -> wrong color for the background image. |
@ObiWahn looks fine on the screenshot, but you have set up a too bright background color which then causes the text color to switch to black. Try to set the background color to |
Thanks @susnux, everything should be stock, I do not even know how to modify the themes. After some testing:
Question:
|
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/theming.html#theming
Yes we needed to adjust the colors for accessibility and it seems we need to adjust the color picker defaults. |
How to use GitHub
Steps
var(--background-image-invert-if-bright)
vs.var(--color-primary-text)
The text was updated successfully, but these errors were encountered: