[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] macOS dark mode issue
From:       Barry Scott <barry () barrys-emacs ! org>
Date:       2019-06-13 18:25:57
Message-ID: 66E97D89-6AEA-4ECB-9DB0-CB941CF096CD () barrys-emacs ! org
[Download RAW message or body]



> On 6 May 2019, at 15:32, Phil Thompson <phil@riverbankcomputing.com> 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    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic