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

MacOS Mojave Dark Mode Support #1020

Open
eliheuer opened this issue Sep 27, 2018 · 4 comments
Open

MacOS Mojave Dark Mode Support #1020

eliheuer opened this issue Sep 27, 2018 · 4 comments
Labels
4.1.x things that cannot be done in 4.0.x

Comments

@eliheuer
Copy link

MacOS 10.14 Mojave
wxPython 4.0.3 installed from PyPI
Python 3.7.0 installed from Brew

I have MacOS set to "Dark Mode", but the wxPython sample applications don't use the Dark Mode styles. See the screenshot below:

wx

@RobinD42 RobinD42 added the 4.1.x things that cannot be done in 4.0.x label Oct 15, 2018
@RobinD42
Copy link
Member

I wouldn't expect this to happen in 4.0.x, but it probably will in the 4.1 series (which will be based on wxWidgets 3.1)

@LoganDark
Copy link

wxWidgets 3.1.1 supports dark mode fine (this is the C++ version, wxPython still doesn't, unfortunately):
image
Although, it doesn't actually support the dark mode background out of the box. I had to manually set the background to Apple's dark background color, which is RGB 21, 21, 21 (including wxWidgets' retarded color handling, the actual color is 35, 35, 35 IIRC)

And it also doesn't support Apple's tinting thing, which means all the dark elements will be tinted based on your desktop, which may look weird on your non-tinted window.

You can see the difference here (window positioned at the edge of my desktop versus the center):

image
image

You can see the difference between the titlebar and the window here.
I think once wxWidgets gets this fixed, wxPython will get the fix too... not sure though.

@hamishmb
Copy link

Never used to work for me, but is working now with Big Sur. Does anyone still have this issue?

@hamishmb
Copy link

Correction, it works for me, but only on BigSur 11.1. It doesn't work for me on macOS 10.15 or 10.14. I am using:

wxPython 4.1.1
wxWidgets 3.1.4
py2app (for the bundling)

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.1.x things that cannot be done in 4.0.x
Projects
None yet
Development

No branches or pull requests

4 participants