-
Notifications
You must be signed in to change notification settings - Fork 481
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
Unreadable text in input boxes on macOS Mojave (10.14) with dark theme #358
Comments
Great! It seems as 5.12.0 will be released in a couple of weeks (https://wiki.qt.io/Qt_5.12_Release). Since it is released soonish I suggest that we do not implement the fix but wait for the new release instead. If anyone is hit by this bug, please apply the above solution locally until Qt 5.12 is released. @bgromov, thanks for a really good and clear error report! |
Hi @bgromov! |
@krichardsson Although I updated Qt to 5.12 it actually did not solve the problem for me either, so for now I kept the changes to the palette (as in the patch above). I suspect it can be something related to Python Qt bindings that also have to be updated (i.e. PyQt / sip?) |
As far as I understand, the client un-modified display well but not in dark mode, and trying to emulate dark mode does not work due to a (py)Qt bug? If so I would close this ticket since there is no problem with the current implementation, or rename it to "Add support for MacOS Mojave dark mode" or something similar to make it clear that this is about adding a functionality. What do you think? |
I am not sure whose fault it is now. The Qt bug has been officially fixed and all the apps that link directly to Qt library have no problems in the dark mode anymore. It didn't work for the Crazyflie Client on my machine though, but I didn't bother to investigate further because rebuilding Sip and PyQt may destroy some of my other apps. So, I can't really confirm there is no bug in the client. I would leave it open and maybe indeed rename it and/or mark it as an enhancement. For me the above palette patch is the only viable solution at the moment. |
Cfclient version: 2018.10
System: darwin
Python: 3.7.1
Qt: 5.11.2
PyQt: 5.11.3
OS: macOS Mojave (10.14) with dark theme
The text in the input fields is not readable as it is set to the same color as the background. Here you can see that only the selected text in Address box is readable:
![screenshot 2018-11-10 at 13 03 31](https://user-images.githubusercontent.com/3196635/48301139-1e336e00-e4e9-11e8-9915-0e27c7352662.png)
The same problem is with Console and Parameters tabs.
Apparently this is a known issue with Qt and should be fixed with the next minor release (5.12.0): https://bugreports.qt.io/browse/QTBUG-68891
I don't know if there is a system-wide solution, but fixing the Qt color palette locally makes the Cfclient usable:
This is a rather ugly patch, but maybe someone will find it useful while waiting for Qt 5.12.
The text was updated successfully, but these errors were encountered: