-
Notifications
You must be signed in to change notification settings - Fork 22
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
ENH: Better dark colors #108
Conversation
@hoechenberger @agramfort @cbrnr you also had comments in #83 (comment) for example, this moves us toward a |
And here is the script I used to test: import numpy as np
import mne
ch_t = ('grad', 'mag', 'ref_meg', 'eeg', 'eeg', 'ecg', 'seeg', 'dbs', 'hbo')
ch_n = list(ch_t)
ch_n[4] = 'bad'
info = mne.create_info(ch_n, 1000., ch_t)
info['bads'] = ['bad']
data = np.random.RandomState(0).randn(len(ch_t), 1000) * 0.1
raw = mne.io.RawArray(data, info)
events = np.array([[200, 0, 1], [300, 0, 2]])
annot = mne.Annotations([0.5, 0.8], 0.1, ['BAD_Segment', 'Test'])
raw.set_annotations(annot)
raw.plot(scalings=1., block=True, order=np.arange(len(ch_t)), events=events) It can be launched with |
It looks better for me, at least in terms of esthetic and viewing experience, but I also mentioned being color-blind.. so I'm not the best to judge colors 😅 I think the background of the plotting area is still a bit too dark for me. I am used to a dark mode with a background color closer to the toolbar background (similar to macOS, Firefox dark modes). |
I tried increasing it a bit to the Want to try different values @mscheltienne and propose what you think is best? Then maybe I can try and we can agree on something in between (or your value if it looks okay already!) |
I'm exhausted tonight, but I'll have a look this weekend if I can tune a bit more your values. I'll try with the firefox colors: https://design.firefox.com/photon/visuals/color.html |
2 or 3 work for me
Thx 🙏
|
I like (3). |
Yes, on macOS (at least with mne-tools/mne-python#10500) it uses the native styling provided by Qt, which is similar to what macOS uses. AFAIK there isn't native dark styling for Qt in Windows, so we have to use a qdarkstyle stylesheet for it. You will also experience this theme on macOS if you have light mode for your system, but ask for a dark theme. This stylesheet has a blueish tint.
Interesting. I looked at the bgcolor of the builtin "Digital Color Meter.app" I had been using to pull colors, and it actually uses
And the left pane of my Finder is
I agree It looks like Safari actually uses And this is what it would look like for us:
Given that it splits the difference between the (2) and (3) I had and people liked above, is used by Apple in one of their premier applications, won't create a hue issue on macOS, and I think is different enough from the darkdetect blue to not be seen as an error, I'm inclined to go with that one. |
Ok, that makes sense now. It's a bit weird that the browser has 2 dark-theme on macOS invoked by the same |
What I'm talking about assumes The same thing actually happens when your macOS system is in dark mode but you request light mode -- we have to use
Sounds like we've converged on 30, so I'll go ahead and merge. We can always tweak trace colors further if people try the ones I've chosen here and find them to be unusable! |
This at least sets up a framework by which we can set the dark mode analogs for our light-mode colors:
For now I tried to choose similar colors based on the matplotlib list.
@mscheltienne you mentioned the colors not being so good, is this any better?
Helps with #83