Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Bugfix/2 fa settings icons invert in dark themes #13643 #14262

wants to merge 2 commits into from

Conversation

Maders
Copy link

@Maders Maders commented Feb 17, 2019

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
image

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.

Signed-off-by: Ehsan Maders <me@maders.ir>
Signed-off-by: Ehsan Maders <me@maders.ir>
@Maders Maders changed the title Bugfix/2 fa settings icons invert in dark themes Bugfix/2 fa settings icons invert in dark themes #13643 Feb 17, 2019
@rullzer
Copy link
Member

rullzer commented Feb 18, 2019

@juliushaertl @skjnldsv

@skjnldsv skjnldsv added design Design, UI, UX, etc. 3. to review Waiting for reviews labels Feb 18, 2019
@skjnldsv skjnldsv added this to the Nextcloud 16 milestone Feb 18, 2019
@juliusknorr
Copy link
Member

@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
Copy link
Member

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
Copy link
Member

Other two factor auth apps must implement your own icon-twofactor_$appId css class based on this mixin functionality.

I guess this is still possible with webpack bundling, right @juliushaertl?

@skjnldsv
Copy link
Member

@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
Copy link
Member

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
Copy link
Member

@juliushaertl and I planned to sit and discuss again the icon registration system at the Contributor week.
I'd say, let's wait until then so we know where we'll head?

This was referenced Mar 4, 2019
@MorrisJobke
Copy link
Member

@juliushaertl and I planned to sit and discuss again the icon registration system at the Contributor week.
I'd say, let's wait until then so we know where we'll head?

@skjnldsv @juliushaertl @ChristophWurst 🏓

@skjnldsv
Copy link
Member

We still don't know where we'll head 🙈

@MorrisJobke MorrisJobke mentioned this pull request Jul 15, 2019
28 tasks
@skjnldsv
Copy link
Member

@juliushaertl we tlked about this last week, shall we take a position here? :)

@juliusknorr
Copy link
Member

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
Copy link
Member

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 color: var(--xxx).
But it also takes space in the dom.
Let's move to a more simpler option. Like you suggested, add a class on body like theme-light/theme-dark and start using it?

We can then easily implement this in the scss svg mixin as well :)

@rullzer rullzer removed this from the Nextcloud 17 milestone Aug 15, 2019
@juliusknorr
Copy link
Member

Let's move to a more simpler option. Like you suggested, add a class on body like theme-light/theme-dark and start using it?
We can then easily implement this in the scss svg mixin as well :)

👍

@skjnldsv skjnldsv closed this Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews design Design, UI, UX, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants