-
-
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
Colorize checkboxes depending on theming color #415
Conversation
@juliushaertl, thanks for your PR! By analyzing the annotation information on this pull request, we identified @jancborchardt, @Kondou-ger and @jbtbnl to be potential reviewers |
#412 is merged, want to continue? 😀 |
@nickvergessen Sure, I will have some time tomorrow to go on with this. |
We need to take into account what happens when someone uses white as the color, or very light colors in general which are not very easy to see on the white background. In that case I’d say we either use the default blue or a standard grey. |
4977522
to
eef8882
Compare
Should be ready for review now.
@nextcloud/designers please check if the boundary for changing to grey is good or if it needs to be changed I also changed the way the css is built, I hope the string concatenation is not that bad, as the response is cached anyway. |
Some comments:
|
Good point, I will add the other states and radio buttons tomorrow. At the moment, I don't have a good solution for separating the disabled icon from the checked one, so that they don't look similar with a gray theme color, but I will think about that. Maybe @jancborchardt ? |
Then leave it for now as it is. We could iterate on this later. |
Ok, I will have time after the weekend to continue with this pr. |
1d3f4b6
to
0b2a679
Compare
Radio buttons are now also colorized. Please review again. I'm not sure if generating the SVG for the radio buttons is the best way, at the moment this is more a hacky approach, but my first plan to use mask-image CSS failed, as this is also unsupported in Firefox. @jancborchardt sorry for giving wrong information on that. |
Yes, we can change the svg-thing later, if someone has a idea to solve this in a more elegant way. |
Nice! Tested and works (IE11, Edge, Firefox, Safari, Chrome) 👍 |
Awesome, works really well! 👍 :) |
@juliushaertl do you want to prepare a backport to sable10? Would be nice to have it in Nextcloud 10 and we also need it for #620 to ship the new first run wizard. |
@schiessle Yes, but i'll wait until #622 is merged. |
Was merged. @juliushaertl Could you create the backport? |
partly fixes #378