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

changed color to light mode #3

Conversation

daaaaaaaaaniel
Copy link

I wanted to add light mode. This pull request changes the text color and message colors to match the macOS light mode theme in the native messages app.

My changes override the dark mode colors. If I knew how, I would have added an option to switch between dark or light mode. But at this time I am unable to make such changes. In the future hopefully somebody else could add that.

@stephancasas
Copy link
Owner

I can't merge this branch without overwriting the existing colour scheme, but I can implement the specified colours into a function which queries an environment variable to conditionally set the CSS.

Are the colour values you provided accurate to the ones used in macOS Messages when light mode is enabled (i.e. checked with Digital Color Meter or another utility)?

@daaaaaaaaaniel
Copy link
Author

That would be great! Yes, i used the built-in Digital Color Utility to check these colors.

@stephancasas
Copy link
Owner

This has been added in the latest commit, exposing alfred_prefers_color_scheme, which can be set as auto, dark, or light.

@daaaaaaaaaniel
Copy link
Author

Oddly, v1.1.0 doesn't seem to do anything. v1.0.2 runs fine when I reverted to it. But no messages at all appear when I type "msg" using 1.1.0…

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.

None yet

2 participants