-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Tweak logo for dark mode #12176
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
Tweak logo for dark mode #12176
Conversation
drammock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the choice of color, but [nitpick] the diff is quite large, because of editing via inkscape. Could you instead tweak the script that generates the logo? I think it's this line:
mne-python/logo/generate_mne_logos.py
Line 129 in 8ea98e2
| tag_patch = PathPatch(tag_clip, facecolor="k", edgecolor="none", zorder=10) |
|
Looks very nice!!! |
|
Actually. Shouldn't we get rid of the tagline. Or change it: Brain analysis ... or something like that? |
|
I cannot generate the updated logo: |
|
And yes, I did install the font. |
|
Maybe you need to refresh the MPL font cache? |
|
Thanks, that was it! Now I saw that the logo also needs the "Primetime" font, which is only free for personal use. I'm not sure that our logo qualifies for personal use. Edit: I'm now using "Cooper Hewitt" everywhere. |
|
Replacing the Primetime font is not a good idea, the PNGs look terrible... |
|
The image diffs look like they're headed in a good direction! A couple of things I noticed though:
Let me know if you want help. My first/naive thought is that maybe we don't need
Makes sense to switch if that is indeed the case. @drammock okay with the switch away from PrimeTime? I think it looks fine/comparable to me but IIRC you chose the fonts originally |
|
@larsoner please feel free to take over! Regarding your first point, I think you need to look at it with white background, because it get's hard to read because of the checkered background IMO. Also, the SVG diffs are still massive even though they were generated with the script (but apparently, a lot has changed in how MPL renders SVGs?). But I guess that's OK. |
from the designer's website:
MNE is not commercial software, so as I said long ago as long as we're not fundraising, selling the stickers, or start charging for MNE I think we're in the clear.
I chose CooperHewitt but I think @agramfort chose Primetime (and I recall being discouraged from changing it when I was scripting the logo generation because "Alex likes Primetime"). Anyway I don't think we need to change it, see above. |
|
Let's not touch Alex's Primetime then 🎉🍹 |
|
Okay I think I'm happy now. @drammock @cbrnr feel free to look -- GitHub has a nice image diff nowadays! Changes:
|
|
Okay I'll actually stop pushing commits now! |
|
@larsoner OK by me if you merge when happy |
| from sphinx.util.display import status_iterator | ||
| except Exception: | ||
| from sphinx.util import status_iterator | ||
| root = Path(__file__).parent.parent.parent.absolute() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even on this branch:
$ git grep "\.parent\.parent" | wc -l
70
but they are now at least all isolated to tests files, I made the others more compact in this PR
|
No idea, I can't replicate on my mobile or on macOS in inspection mode as an iPhone, or in Safari |
|
You mean that gray bar underneath the tagline? |
No, I meant the white (gray?) text, which is 100% readable (on |
|
I cannot read the tagline in dark mode 🥲 (see my screenshots above) |
|
Yes, I think it's something my phone does. |
|
Yeah but … wasn't that something this PR aimed to address too? 😅 |
|
Yes, but as @larsoner mentioned here, we merged this prematurely. I'm not entirely sure what the plan is, but he created a third logo variant |
|
Ah okay! I missed that! |
* upstream/main: BUG: Fix bug with spectrum warning (mne-tools#12186) Add argument splash to disable splash-screen from Qt-browser (mne-tools#12185) BUG: Fix bug with logging and n_jobs>1 (mne-tools#12154) Use gray logo (works in light and dark modes) (mne-tools#12184) Tweak logo for dark mode (mne-tools#12176) ENH: Improve Covariance.__repr__ (mne-tools#12181) ENH: Enable sensor-specific OPM coregistration in mne coreg (mne-tools#11405) Tweak README.rst (mne-tools#12166) [pre-commit.ci] pre-commit autoupdate (mne-tools#12177) MAINT: Add branch coverage (mne-tools#12174) OpenSSF (mne-tools#12175) fix docstring in 60_sleep.py (mne-tools#12171) FIX: skip empty lines in read_raw_eyelink (mne-tools#12172) FIX: Fix bug with coreg scalars (mne-tools#12164) Changed casting rule in np.clip to allow reading of raw GDF files (mne-tools#12168) [DOC] Add documentation for setting montage order (mne-tools#12160) Fix inferring fiducials from EEGLAB (mne-tools#12165)
…o-pyproject.toml * upstream/main: MAINT: Fix CIs (mne-tools#12188) BUG: Fix bug with default alpha and axes (mne-tools#12187) BUG: Fix bug with spectrum warning (mne-tools#12186) Add argument splash to disable splash-screen from Qt-browser (mne-tools#12185) BUG: Fix bug with logging and n_jobs>1 (mne-tools#12154) Use gray logo (works in light and dark modes) (mne-tools#12184) Tweak logo for dark mode (mne-tools#12176) ENH: Improve Covariance.__repr__ (mne-tools#12181) ENH: Enable sensor-specific OPM coregistration in mne coreg (mne-tools#11405) Tweak README.rst (mne-tools#12166)
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>









Fixes #11791. I made the text a bit lighter (60% gray), which makes it easier to read in dark mode. It should be still quite readable in light mode as well.
Old (current) light:

Old (current) dark:

New light:

New dark:
