Make monochrome icons the default on Linux and Mac OS.
authorCamila <hello@camila.codes>
Tue, 15 Dec 2020 20:07:51 +0000 (21:07 +0100)
committerCamila <hello@camila.codes>
Wed, 16 Dec 2020 13:42:24 +0000 (14:42 +0100)
Unless it is branded with other icons.

Signed-off-by: Camila <hello@camila.codes>
src/libsync/configfile.cpp

index bc4ab69b4887fa51438644e1de43b1c760f2c29e..be877e712db1c84c62a138fd80b9c9373e8d2fb3 100644 (file)
@@ -896,10 +896,10 @@ void ConfigFile::setPromptDeleteFiles(bool promptDeleteFiles)
 bool ConfigFile::monoIcons() const
 {
     QSettings settings(configFile(), QSettings::IniFormat);
-    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)));
+    // On Mac and Linux we want bw by default
+    bool monoDefault = QByteArrayLiteral("Nextcloud") == QByteArrayLiteral(APPLICATION_NAME);
+#ifdef Q_OS_WIN
+    monoDefault = false;
 #endif
     return settings.value(QLatin1String(monoIconsC), monoDefault).toBool();
 }