path: root/tests
diff options
authorGabriel de Dietrich <>2018-06-15 23:15:10 +0200
committerTor Arne Vestbø <>2018-08-09 08:19:01 +0000
commit04671a80db32bd7fce470c50934cf60f2e8ffa70 (patch)
treed51d914928f65e2a04e24bc7b0bf0c2c8e891c50 /tests
parent490d461ab080777d6418dce97db632dc2270d218 (diff)
macOS: Force light theme on macOS 10.14+
Until we can properly fix QPalette and QMacStyle, we should disable dark appearance in Qt applications. Disable by setting NSApp.appearance to Aqua, unless dark mode support has been requested via Info.plist or environment variable. Read the NSRequiresAquaSystemAppearance Info.plist key, don’t set NSApp.appearance if its value is false. Also check the QT_MAC_REQUIRES_AQUA_SYSTEM_APPEARANCE environment variable and apply similar logic. You then enable dark mode support by setting: QT_MAC_REQUIRES_AQUA_SYSTEM_APPEARANCE=0 which is slightly awkward, but matches Info.plist behavior. Task-number: QTBUG-68891 Change-Id: I86dc6cf3dee951d46c953396c57d2c31f2e4afcc Reviewed-by: Morten Johan Sørvig <>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions