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

Add dark style toggle to indicator #72

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

meisenzahl
Copy link
Member

Closes #71

@meisenzahl
Copy link
Member Author

meisenzahl commented Oct 4, 2020

wingpanel-indicator-nightlight-add-dark-style-toggle-00

@danrabbit What do you think of the layout?

Or do we want to create an own indicator for appearance? There we could also handle the accent color.

@meisenzahl
Copy link
Member Author

Related to elementary/settings-daemon#15

@fabiozaramella
Copy link
Member

In my opinion it looks a bit cramped but it's still better than a separate indicator, since dark mode goes "logically" better along with night light.

@danirabbit
Copy link
Member

I think we should probably group the link items together at the bottom

Screenshot from 2020-10-06 14 03 10@2x

And maybe dropping the separator between the slider and the switch would make these feel more logically grouped

@fabiozaramella
Copy link
Member

What if we just drop the separator but keep the links divided? Since it makes sense for those to be separated.

@meisenzahl
Copy link
Member Author

wingpanel-indicator-nightlight-add-dark-style-toggle-01

Like this?

@martinstork
Copy link

Quick phone edit:
image

Same order as the first image but separated by nightlight and dark mode might be an option.

@fabiozaramella
Copy link
Member

fabiozaramella commented Oct 8, 2020

How would it look as in @martinstork picture but keeping the separator between toggle/slider and the link to settings? Maybe it would looks better while still being relatively homogeneous to other indicators' style.

@meisenzahl
Copy link
Member Author

How would it look as in @martinstork picture but keeping the separator between toggle/slider and the link to settings? Maybe it would looks better while still being relatively homogeneous to other indicators' style.

@fabiozaramella you mean like this?

wingpanel-indicator-nightlight-add-dark-style-toggle-02

@meisenzahl
Copy link
Member Author

Here are 2 more layouts, though I am not satisfied with them myself

wingpanel-indicator-nightlight-add-dark-style-toggle-03

wingpanel-indicator-nightlight-add-dark-style-toggle-04

@fabiozaramella
Copy link
Member

How would it look as in @martinstork picture but keeping the separator between toggle/slider and the link to settings? Maybe it would looks better while still being relatively homogeneous to other indicators' style.

@fabiozaramella you mean like this?

wingpanel-indicator-nightlight-add-dark-style-toggle-02

Exactly, I think it's a good compromise. 😅

@fabiozaramella
Copy link
Member

@elementary/ux any opinion on this?

@cassidyjames
Copy link
Contributor

I want to think about what we want to actually have in an indicator, and when; i.e. should it have a light/dark style selection, or just a snooze option when dark style is scheduled? It works a little differently than Night Light so I want to be sure we're doing what people would expect here.

@cassidyjames cassidyjames requested a review from a team October 14, 2020 17:22
@hanaral
Copy link

hanaral commented Oct 25, 2020

I want to think about what we want to actually have in an indicator, and when; i.e. should it have a light/dark style selection, or just a snooze option when dark style is scheduled? It works a little differently than Night Light so I want to be sure we're doing what people would expect here.

Maybe it shouldn't have a snooze at all? Since the dark style is not just something you toggle on and off like you would with a colour shift (in the case of colour checking). I think that the dark mode should only be able to be changed from Settings > Appearance, and that the indicator only has an obvious 'Dark Style Settings...' button.

@cassidyjames
Copy link
Contributor

cassidyjames commented Nov 9, 2020

@hanaral I disagree. I toggle dark style on/off frequently on my phone depending on the context; e.g. if I bring my device into a dark room or outside into a bright environment. Having a quick toggle here would still be useful.

I think for a first go, we just stick to an option for dark or light, and have it disable the schedule if toggled. Then we can follow it up with smarter "snoozing" logic. So, something like:

--------------^---------------
| Snooze Night Light   (o-)  |
|                            |
| ☀️ --------------o-------  |
|                            |
|----------------------------|
|                            |
|        ☀️        🌑️        |
|      Default    Dark       |
|                            |
|----------------------------|
| Night Light Settings…      |
| Appearance Settings…       |
------------------------------

@danrabbit you had mentioned providing icons or illustrations at a smaller size for this, I think?

@hanaral
Copy link

hanaral commented Nov 10, 2020

@hanaral I disagree. I toggle dark style on/off frequently on my phone depending on the context; e.g. if I bring my device into a dark room or outside into a bright environment. Having a quick toggle here would still be useful.

Hmm, I see. My argument was based on the idea that the environment wouldn't change, but I can see that moving a device around would require it.

Edit: I just thought about this, but shouldn't alot of the Appearance, Display and Locking related settings panels be rethought a little?
I've opened an issue here

@ChildishGiant
Copy link

I just spent the whole day making my own indicator, without checking if someone has already done it 🤦
https://github.com/ChildishGiant/wingpanel-indicator-dark-style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add dark style toggle
7 participants