diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-08-16 14:01:17 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-08-24 07:50:25 +0000 |
commit | c79f436e2acb0f7652cad536fc73c4488ee99398 (patch) | |
tree | bd55cda519013664d05ead57fd2d07778b5cc5f8 /src/libs/utils/utils-lib.pri | |
parent | 389fb7f0605b97b47f1a54661f83f802f8416185 (diff) | |
download | qt-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.pri | 2 |
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 |