Skip to content

Topbar icons and text are controlled by wrong variable #42954

Closed

Description

@nickvergessen

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps

  • Use default background image
  • Change theming color to the yellow option
Default blue Option yellow
✅ 💥 Text and all icons on the right side have the wrong color (based on primary and not if background is bright/dark, but that fact is used by the app icons in top left with var(--background-image-invert-if-bright) vs. var(--color-primary-text)
Bildschirmfoto vom 2024-01-19 09-24-58 Bildschirmfoto vom 2024-01-19 09-24-50
Default blue Option yellow
💥 "More apps" icon has wrong color 💥 "More apps" icon has wrong color
Bildschirmfoto vom 2024-01-19 09-25-12 Bildschirmfoto vom 2024-01-19 09-25-22

Activity

  1. JuliaKirschenheuter commented on Jan 19, 2024

    @JuliaKirschenheuter
    Contributor
  2. JuliaKirschenheuter commented on Jan 19, 2024

    @JuliaKirschenheuter
    Contributor

    probably #42620 is a problem

  3. SystemKeeper commented on Jan 19, 2024

    @SystemKeeper
  4. nickvergessen commented on Jan 19, 2024

    @nickvergessen
    Author
  5. szaimen commented on Jan 19, 2024

    @szaimen
  6. szaimen commented on Jan 19, 2024

    @szaimen
    Contributor

    probably #42620 is a problem

    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)

  7. susnux commented on Jan 19, 2024

    @susnux
    Contributor

    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.

  8. szaimen commented on Jan 19, 2024

    @szaimen
    Contributor

    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)

  9. 11 remaining items

  10. added this to the Nextcloud 28.0.3 milestone on Jan 23, 2024
  11. nursoda commented on Feb 15, 2024

    @nursoda

    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.

  12. nursoda commented on Feb 15, 2024

    @nursoda
  13. susnux commented on Feb 15, 2024

    @susnux
    Contributor

    @nursoda this is unrelated - happens because of the icon SVG of the dashboard app.

  14. nursoda commented on Feb 15, 2024

    @nursoda
  15. ObiWahn commented on Feb 17, 2024

    @ObiWahn

    screenshot_2024-02-17_11:02:11

    please fix this, I have to deal with a lot of non technical users and they seem to care much more about this than about any other functional bug.

  16. escoand commented on Feb 17, 2024

    @escoand
    Contributor

    Duplicate of #43298

  17. susnux commented on Feb 17, 2024

    @susnux
    Contributor

    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.

  18. reopened this on Feb 17, 2024
  19. susnux commented on Feb 17, 2024

    @susnux
    Contributor

    @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.
    The text color will always try to be at least 4.5:1 color contrast to the background color. This is needed for accessibility.

    Try to set the background color to #00679e which is the default, this will then use white text and icons on the app navigation.

  20. removed this from the Nextcloud 28.0.3 milestone on Feb 17, 2024
  21. ObiWahn commented on Feb 18, 2024

    @ObiWahn

    Thanks @susnux, everything should be stock, I do not even know how to modify the themes.

    After some testing:

    • I have currently no background at all selected index.php/settings/user/theming
    • And the current color is in the first col of the third row (afaik it was never modified).
    • Switching to the 2nd col has the wanted effect
    • I can not find any input textbox for a color code

    Question:

    • Is there a way make the slightly darker blue the default for all users?
  22. susnux commented on Feb 18, 2024

    @susnux
    Contributor

    Is there a way make the slightly darker blue the default for all users?

    https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/theming.html#theming

    And the current color is in the first col of the third row (afaik it was never modified).

    Yes we needed to adjust the colors for accessibility and it seems we need to adjust the color picker defaults.
    Once #42977 is merged this will be finally fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions