Revert "Make monochrome icons the default on Linux and Mac OS."
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 20 Jan 2021 14:16:13 +0000 (15:16 +0100)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Thu, 21 Jan 2021 06:39:11 +0000 (06:39 +0000)
This reverts commit 016410dbaad9cfa85209d6424dc2df9362a80a17.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/configfile.cpp

index be877e712db1c84c62a138fd80b9c9373e8d2fb3..bc4ab69b4887fa51438644e1de43b1c760f2c29e 100644 (file)
@@ -896,10 +896,10 @@ void ConfigFile::setPromptDeleteFiles(bool promptDeleteFiles)
 bool ConfigFile::monoIcons() const
 {
     QSettings settings(configFile(), QSettings::IniFormat);
-    // On Mac and Linux we want bw by default
-    bool monoDefault = QByteArrayLiteral("Nextcloud") == QByteArrayLiteral(APPLICATION_NAME);
-#ifdef Q_OS_WIN
-    monoDefault = false;
+    bool monoDefault = false; // On Mac we want bw by default
+#ifdef Q_OS_MAC
+    // OEM themes are not obliged to ship mono icons
+    monoDefault = (0 == (strcmp("ownCloud", APPLICATION_NAME)));
 #endif
     return settings.value(QLatin1String(monoIconsC), monoDefault).toBool();
 }