-
-
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
Need a way to get icon in primary text color #19565
Comments
Use svg icons inline or icons as font? and use color: var(--color-primary-text) |
Sorry I'm just a backend dev in need of a icon in the color I tell you. So for now we get a wrong icon color in Talk dark mode, fine by me. |
Onlyoffice has the same issue: |
Mail has the same issue. |
nextcloud/spreed@6ddb58f seems to work as an intermediate workaround. |
clearing the milestone |
Is that actually needed now that more apps are switching to use vue material icons that embed SVG which can dynamically be adjusted in color? I'd say we can close this. |
Still relevant for app icons with situations like the header bar or login page (e.g. registration app), but yeah less urgent |
Do I get this right? You want an icon to have a fitting colour over a primary colour? if so #31751 tackles that in a way |
Yes exactly |
Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you! |
Still an issue atm, but we are all migrating away to inline SVGs, so it's hopefully solved soon. |
As an app we want to have icons on primary color buttons.
For this we use
$color-primary-text
because we want it to be independent from the text color, because the text color in the button can be different from normal text color. So the following sounds like the solution:However,
$color-primary-text
is white or black, and thereforserver/core/css/functions.scss
Lines 70 to 74 in 521b2dd
will use
--icon-video-fff
in case of default nextcloud blue, that is still okay.But if you now enable dark-mode
--icon-video-fff
requests the image?color=000
because:server/apps/accessibility/lib/Controller/AccessibilityController.php
Lines 281 to 297 in 30d985b
Doesn't know anymore that
fff
is because of$color-primary-text
😿Any clever idea around this? cc @skjnldsv @juliushaertl
The text was updated successfully, but these errors were encountered: