summaryrefslogtreecommitdiff
path: root/src/libs/utils/utils-lib.pri
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2018-08-16 14:01:17 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2018-08-24 07:50:25 +0000
commitc79f436e2acb0f7652cad536fc73c4488ee99398 (patch)
treebd55cda519013664d05ead57fd2d07778b5cc5f8 /src/libs/utils/utils-lib.pri
parent389fb7f0605b97b47f1a54661f83f802f8416185 (diff)
downloadqt-creator-c79f436e2acb0f7652cad536fc73c4488ee99398.tar.gz
Improve macOS dark mode support
The current theme support in Creator works well, also in macOS dark mode. This change makes sure that the native macOS appearance setting (for the Creator process) and the creator theme setting are in sync. This is required to avoid light/dark palette issues for the light Creator themes when the desktop is configured for dark appearance. Add a “DarkUserInterface” flag to the creatortheme files. This flag indicates if the theme is overall dark, with light text on dark background. Make setCreatorTheme() force the standard light aqua appearance for light Creator themes. Change-Id: I1a5c183230ab0e66641fd834df19d7e0ad1b6a53 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/utils-lib.pri')
-rw-r--r--src/libs/utils/utils-lib.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/utils-lib.pri b/src/libs/utils/utils-lib.pri
index 0cd5f68e12..41d8745baa 100644
--- a/src/libs/utils/utils-lib.pri
+++ b/src/libs/utils/utils-lib.pri
@@ -270,8 +270,10 @@ RESOURCES += $$PWD/utils.qrc
osx {
HEADERS += \
+ $$PWD/theme/theme_mac.h \
$$PWD/fileutils_mac.h
OBJECTIVE_SOURCES += \
+ $$PWD/theme/theme_mac.mm \
$$PWD/fileutils_mac.mm \
$$PWD/processhandle_mac.mm
LIBS += -framework Foundation -framework AppKit