You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Header icons need to invert to black/dark on specific preset background images (like the Dashboard does) #33969
The Dashboard already does this correctly, and as discussed with @juliushaertl we should use the same logic for the other pages. Specifically, this applies to these 4 backgrounds:
bernie-cetonia-aurata-take-off-composition.jpg
lali-masriera-yellow-bricks.jpg
rawpixel-pink-tapioca-bubbles.jpg
tommy-chau-lion-rock-hill.jpg
The logic seems to be with the --primary-invert-if-bright variable as far as I can see.
Correct in Dashboard – I would additionally say that we need to invert the logo as well (only if it is our default Nextcloud logo though) cc @karlitschek
Needs to be adjusted in the other apps. I assume with Julius’ move of the header to Vue this might be easier?
Activity
szaimen commentedon Sep 9, 2022
@CarlSchwan could you maybe also have a fast look into this? I think it is pretty bad...
skjnldsv commentedon Sep 28, 2022
Once #34272 is done, we can easily adjust
--primary-invert-if-brightaccordinglyI can handle it if no one is diving into this. :)
cc @Pytal
Pytal commentedon Sep 28, 2022
Preset colors of shipped backgrounds are used as primary in #34298
If this touches the same code then it can be handled by @skjnldsv after the above PR
skjnldsv commentedon Oct 5, 2022
Fixed with #34298
Pytal commentedon Oct 12, 2022
Fixed on dashboard and appearance pages but not globally like on the files page
The
--primary-invert-if-brightvariable needs to be adjusted then @skjnldsv?skjnldsv commentedon Oct 12, 2022
Isn't the primary-invert-if-bright already using the primary colour?
Why does it needs extra work then?
skjnldsv commentedon Oct 12, 2022
server/apps/theming/lib/Themes/DefaultTheme.php
Line 193 in e4d3344
skjnldsv commentedon Oct 12, 2022
Ah, this should be properly fixed by #34437 I guess
szaimen commentedon Oct 12, 2022
no, not for custom background. It will probably only get fixed with #34512
skjnldsv commentedon Oct 12, 2022
@szaimen this issue is not about custom background
szaimen commentedon Oct 12, 2022
Ah I see.
Pytal commentedon Oct 12, 2022
👌
skjnldsv commentedon Oct 13, 2022
Merged and fixed
Pytal commentedon Oct 18, 2022
Seems that the header icons on the files page and others (excluding dashboard and appearance pages) are still not inverted