-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Bugfix/2 fa settings icons invert in dark themes #13643 #14262
Bugfix/2 fa settings icons invert in dark themes #13643 #14262
Conversation
Signed-off-by: Ehsan Maders <me@maders.ir>
Signed-off-by: Ehsan Maders <me@maders.ir>
@rullzer This is something where the some inline-css approach / backend icon registration would make sense, since otherwise every provider would need to load their own css file. Also if we want to move other backend-provided icons from urls to classes (like for navigation/activity) |
Thanks @Maders The only issue I see with this approach would be as mentioned in the first post that every twofactor provider will then need to load an individual CSS file. Probably ok for twofactor, since there will most likely just be a hand full of different providers. What do you think @skjnldsv @ChristophWurst |
I guess this is still possible with webpack bundling, right @juliushaertl? |
@juliushaertl I'm ok with that, but @rullzer might not since he's trying to remove as many style/script request on load as he can 😝 |
Well yes I want as less css loaded as possible ;) (We still load to much). Anyways. What do we do here. Merge for 16 or 17? @skjnldsv @ChristophWurst @juliushaertl ? |
@juliushaertl and I planned to sit and discuss again the icon registration system at the Contributor week. |
|
We still don't know where we'll head 🙈 |
@juliushaertl we tlked about this last week, shall we take a position here? :) |
When thinking about that again, the icon font approach you proposed doesn't work if we use it as a background image, or am I missing something? |
Nope, it only work as a pseudo element, that means we can use We can then easily implement this in the scss svg mixin as well :) |
👍 |
Other two factor auth apps must implement your own
icon-twofactor_$appId
css class based on this mixin functionality.E.g. totp app:
.icon-twofactor_totp { @include icon-black-white('icon-name', 'app-name', 1) }
// result is something like that
But i can't understand how nextcloud theme system, know to change the icons color with svg api based on current theme mode.
Sorry, i know my English grammar is not correct 😬 but i like to contribute.