Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
[Jenkins] clang-format commit (20/01/21)
Browse files Browse the repository at this point in the history
  • Loading branch information
tulipdev committed Jan 20, 2021
1 parent b93c2c0 commit 060924d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions library/tulip-gui/src/TulipSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ bool TulipSettings::isDisplayInDarkMode() {
if (!instance().contains(TS_DisplayInDarkMode)) {
#ifdef __APPLE__
QString osVersion = QSysInfo::productVersion();
// Dark mode exists since MacOS 10.14
// Dark mode exists since MacOS 10.14
if (osVersion >= "10.14") {
QProcess process;
process.start("defaults", {"read", "-g", "AppleInterfaceStyle"});
Expand All @@ -483,11 +483,13 @@ bool TulipSettings::isDisplayInDarkMode() {
}
#endif
#ifdef _WIN32
QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", QSettings::NativeFormat);
return settings.value("AppsUseLightTheme", 1) == 0;
QSettings settings(
"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize",
QSettings::NativeFormat);
return settings.value("AppsUseLightTheme", 1) == 0;
#endif
return false;
}
return false;
}

return instance().value(TS_DisplayInDarkMode, false).toBool();
}
Expand Down

0 comments on commit 060924d

Please sign in to comment.