-
Notifications
You must be signed in to change notification settings - Fork 276
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
theme: Follow system setting for light/dark theme! #867
Conversation
The theme change is supposed to animate, over 200ms, but I haven't managed to reproduce that on iOS yet. I think what's happening is:
Ah well. The animation should show when we add the in-app setting, and I have seen it on Android upon returning to the app after changing the system setting manually. |
Fun. I guess if you're using the screen at the appointed time, and keep using it continuously, then at some point after two minutes or an hour or something it'll decide to stop holding out and will make the transition before your eyes. But that's a pain to demonstrate. I have watched the app make the transition at previous stages of this work, just by editing the brightness used in |
Oh yeah definitely; me too. If I hadn't seen that, I'd want to investigate more to see if the lack of animation was just a bug I wrote into the code :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code all LGTM.
@alya Thoughts on the behavior change where the app will now always follow the system's light-theme/dark-theme setting, rather than always be in light theme? (Later we'll add a setting for it; that's #97.)
Seems fine to me — only people who have the system on dark theme will be affected, and probably more of them are annoyed the app is currently light theme than will be annoyed by the app following to dark theme. And this is still a beta, after all. Showing dark theme to dark-theme users will help get feedback on it.
Just added a small commit:
|
Cool, that change LGTM too. |
Sounds like a good plan to me! |
We now have dark-theme variants in all the styles that differ between light and dark, in all of the app we've implemented so far. It's time to let users benefit from that work! We don't yet let the user choose between dark/light/system in the app -- that's zulip#97 "Store some client settings" -- but the "system" behavior should be the default anyway, and this commit provides that. The dark-theme colors come from various sources. For each color, I believe the source is clear either in the code or the Git history. Those sources are: - Flutter's library of Material Design widgets, for UI that's been using those (like the compose box) - the "ready for dev" parts of the new Figma, like this: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=2940-48987&m=dev - the web app (in its state when we wrote the zulip-flutter commit) - the table of variables in the new Figma, with a note that we're not sure if we chose the right variable (because that part of the UI doesn't have a "ready for dev" design in the Figma yet) - my brain and a quick check that it looked OK, as a last resort We'll want to update the colors as Vlad's work on the new Figma progresses, and also incorporate his feedback from trying out the app in dark theme. Fixes: zulip#95
OK — merging! I took a quick look at |
89d825a
to
fff2d8d
Compare
We now have dark-theme variants in all the styles that differ between light and dark, in all of the app we've implemented so far. It's time to let users benefit from that work!
We don't yet let the user choose between dark/light/system in the app -- that's #97 "Store some client settings" -- but the "system" behavior should be the default anyway, and this commit provides that.
The dark-theme colors come from various sources. For each color, I believe the source is clear either in the code or the Git history. Those sources are:
We'll want to update the colors as Vlad's work on the new Figma progresses, and also incorporate his feedback from trying out the app in dark theme.
Fixes: #95