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

Added auto theme #185

Merged
merged 1 commit into from
Oct 5, 2019
Merged

Added auto theme #185

merged 1 commit into from
Oct 5, 2019

Conversation

AndrewBastin
Copy link
Member

This PR adds an automatic theme which uses the prefers-color-scheme media query to automatically go to dark mode or be in light mode respecting the user's system's norms (like Android and iOS dark modes, Windows/macOS dark modes (some change based on time of day)).

Now, I do kinda feel auto to be a good candidate for being the default theme, since it integrates more with the system preference. So if this can be replaced from dark as the default, please feel free to add to my commit.

@ghost
Copy link

ghost commented Oct 4, 2019

DeepCode Report (#2f1688)

DeepCode analyzed this pull request.
There are no new issues.

@TravisBuddy
Copy link

Hey @AndrewBastin,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 1966a920-e702-11e9-8e12-4bc655cb216a

@liyasthomas
Copy link
Member

liyasthomas commented Oct 5, 2019

I actually had one PR cooking up for this since you add Black mode. And default to auto mode seems reasonable. But after looking at the cross browser/platform support for prefers-color-scheme only chrome has full support atm, and safari/firefox has partial support. So default to auto mode can be posted to near future.

@liyasthomas liyasthomas added the feature New feature or request label Oct 5, 2019
Copy link
Member

@liyasthomas liyasthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆗✨

@liyasthomas liyasthomas merged commit 7c0987d into hoppscotch:master Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants