Re: macOS dark mode issue

Barry Scott <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>

> On 6 May 2019, at 15:32, Phil Thompson <[email protected]> wrote:
> 
> On 06/05/2019 15:25, Barry Scott wrote:
>> Phil,
>> I'm seeing a problem with the toolbar items not being draw when coming
>> out of sleep.
>> Apparently dark mode needs QT to be built against an up todate macOS SDK.
>> I got this from https://blog.qt.io/blog/2018/11/08/qt-macos-10-14-mojave/
>> And I'm wondering if that is the problem.
>> Do you build QT yourself?
>> If so which SDK version did you use to build Qt5 for the PyQt5.12 release?
> 
> I don't build Qt myself.
> 
> Phil
> 


I found that I needed to add this to my apps Info.plist.

        <key>NSRequiresAquaSystemAppearance</key>
        <string>false</string>

Which tell macOS that the app supports dark mode.
This fixes the problems with the toolbar.

Barry

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.