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

Light mode #13

Closed
mshron opened this issue Dec 4, 2018 · 13 comments
Closed

Light mode #13

mshron opened this issue Dec 4, 2018 · 13 comments

Comments

@mshron
Copy link

mshron commented Dec 4, 2018

Really enjoying mcfly, thanks for making it!

With the Solarized Light color scheme, all of the un-highlighted suggestions are invisible (see attached images).

screenshot 2018-12-04 10 01 18

screenshot 2018-12-04 10 00 59

If this isn't a priority for you, I'd be happy to hack on it some time.

I poked a bit through interface.rs and settings.rs. From a cursory examination, seems like one way to add a light mode would be for settings.rs to look for an environment variable (MCFLY_LIGHT?) around here, set a bool in settings, and then for menubar() prompt() and results() to act accordingly. Would that be your preferred way of propagating a setting like that?

@cantino
Copy link
Owner

cantino commented Dec 4, 2018

Glad you like it! Yes, I realized after releasing that I'd only tested on my dark terminals! Oops! 🙄It'd be great to have your help on this, and your suggested method is reasonable. Another option would be to variabilize the colors used here, here, and here and allow them to be passed in somehow.

@bmhenry
Copy link

bmhenry commented Dec 4, 2018

Depending on how complicated you want to make this, pointing a variable or a config file towards the output shell script generated by pywal or wpgtk and grabbing the foreground color from that would be an awesome option.
I don't think there's any option supported by the majority of terminal emulators for getting the current foreground color, unfortunately.

@cantino
Copy link
Owner

cantino commented Dec 5, 2018

@mshron, I think we could start with a simple toggle between light and dark mode, like you suggested. Do you want to work on this, or should I do it?

@mshron
Copy link
Author

mshron commented Dec 5, 2018

@cantino No preference on my end. If it's not something that you wanted to make a priority, I'd be happy to work on it (probably one evening next week). But if you'd like to do it, definitely don't let me stand in your way!

@cantino
Copy link
Owner

cantino commented Dec 5, 2018

I'd be a big fan of having you as an OSS contributor, so I'll let you give it a shot. 😄 If you get stuck or can't find the time, let me know and I'll try to get it done.

@mshron
Copy link
Author

mshron commented Dec 5, 2018

👍 Sounds good to me

@mshron
Copy link
Author

mshron commented Dec 6, 2018

Okay, I've got the basic logic working. Now just to figure out a good color scheme 😄

@cantino
Copy link
Owner

cantino commented Dec 9, 2018

Nice!

@DivineOmega
Copy link

The ability to change theme colours will be great. I've been trying to use mcfly in the default dark terminal that's integrated into PHP Storm, and unfortunately most of the text is not visible at all, making it very difficult to use.

@mshron mshron mentioned this issue Dec 12, 2018
@mshron
Copy link
Author

mshron commented Dec 12, 2018

@DivineOmega I don't think the light mode PR will fix your problem, but it might point the way to including a more comprehensive set of color choices.

@cantino
Copy link
Owner

cantino commented Dec 25, 2018

Merged in 5be3eb8 and deployed in 0.3.0, thanks!

@cantino cantino closed this as completed Dec 25, 2018
@cantino cantino reopened this Dec 25, 2018
@cantino
Copy link
Owner

cantino commented Dec 25, 2018

@mshron One issue: it looks like we lost the highlight color as you use the arrow keys. I'll try to add it back in.

@cantino
Copy link
Owner

cantino commented Dec 25, 2018

Fixed in b7edc7d

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

No branches or pull requests

4 participants