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
Change switch color depending on state #1182
Conversation
I think this PR is a great improvement! Copying bits from the forum post I just made here: 2 variants on Codepen to experiment
Update: In the forum I suggested two different variants and the poll suggests that the colored knob (variant 2 in my codepen) is preferred - and it's also less work for you! |
Thanks for the demo. I think that you can only really tell if it works if it's embedded in the actual GUI, though. |
Sure, you're right! I didn't get around to building Anki from source yet, but since there are some UX-Design challenges ahead where I could potentially help, I guess it's time that I do :) |
The letter does feel a bit difficult to read at the moment. I have no strong feelings about using a separate colour for notes mode if that's what people would prefer :-) Would be interesting to see how @kleinerpirat's variants look like in the program too |
Of course, the contrast can be increased independent of the variant by using the foreground colours as @kleinerpirat has done in the meantime. I personally prefer the unobtrusive low-contrast version. Now that the mode can be identified by position, label and colour, legibility should be less important. |
I've experimented a bit with that look as well. Here I gave the knob the same radius as the path: Night ModeDay ModeI'm getting really switchy vibes from this design. It's quite satisfying to toggle.
To get rid of the narrow bright area, I changed this: Lines 37 to 40 in 25685f7
to this:
(That 2.8125 is meant to correct for my 6.25% path-width-reduction.) And this is the knob_rectangle:
|
|
Sure, here's the diff:
This is with a 5% width decrease and I also gave the knob a faint border (gives it a bit more pop against the background). The only thing that still bugs me here is that the label seems to be a bit off-center (lower). Perhaps @RumovZ knows how to fix this. |
I feel that the knob should either be smaller or larger than the path. That's personal preference, of course, but it's also practical to avoid the ugly outline seen in my screenshot above. |
Thank you both, I've just merged in #1188 |
On the forum, I said the existing green wouldn't work in day mode. After a bit of experimenting and changing the blue to a lighter hue as well, I take that back.
@dae, we had the colour discussion before. Do you think this is an improvement? @kleinerpirat, what do you think? The switch is also a bit less obtrusive with the new colours.