-
Notifications
You must be signed in to change notification settings - Fork 663
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
Respect the prefers-color-scheme setting #1275
Respect the prefers-color-scheme setting #1275
Conversation
I think this is a good step but maybe we should take it further and add a toggle like on the Laravel docs so people can choose either light, dark or system preferences? |
Agreed, it would offer a lot more flexibility |
Can you add a screenshot how this looks? |
I'd personally remove the background but other than that lgtm. Thanks! |
LGTM - thanks 👍 |
Maybe adding |
* Mask as deprecated using `night()` and `$useDarkTheme` This PR is for #1275 * Try to fix style
I've changed the layout file to include media attributes on the CSS files in order to respect the
prefers-color-scheme
-setting. The style of Horizon will therefore be determined by the preference of the user. Developers who prefer Horizon in light mode are not affected by theHorizon::night()
method anymore.Note that the
night
method has not been removed to prevent a breaking change.