stephancasas / alfred-mouseless-messenger

Preview and reply to your messages from within Alfred. Keep your hands on that keyboard!
96 stars 4 forks source link

changed color to light mode #3

Closed daaaaaaaaaniel closed 2 years ago

daaaaaaaaaniel commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

stephancasas commented 2 years ago

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

daaaaaaaaaniel commented 2 years ago

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…