Uh oh!
There was an error while loading. Please reload this page.
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
commented
Feb 18, 2019
juliusknorr
commented
Feb 18, 2019
@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) |
juliusknorr
commented
Feb 18, 2019
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 |
ChristophWurst
commented
Feb 21, 2019
I guess this is still possible with webpack bundling, right @juliushaertl? |
skjnldsv
commented
Feb 21, 2019
@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 😝 |
rullzer
commented
Feb 26, 2019
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 ? |
skjnldsv
commented
Feb 26, 2019
@juliushaertl and I planned to sit and discuss again the icon registration system at the Contributor week. |
MorrisJobke
commented
Mar 20, 2019
|
skjnldsv
commented
Mar 20, 2019
We still don't know where we'll head 🙈 |
skjnldsv
commented
Aug 13, 2019
@juliushaertl we tlked about this last week, shall we take a position here? :) |
juliusknorr
commented
Aug 14, 2019
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? |
skjnldsv
commented
Aug 14, 2019
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 :) |
juliusknorr
commented
Aug 18, 2019
👍 |
Other two factor auth apps must implement your own

icon-twofactor_$appIdcss 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.