From 016410dbaad9cfa85209d6424dc2df9362a80a17 Mon Sep 17 00:00:00 2001 From: Camila Date: Tue, 15 Dec 2020 21:07:51 +0100 Subject: [PATCH] Make monochrome icons the default on Linux and Mac OS. Unless it is branded with other icons. Signed-off-by: Camila --- src/libsync/configfile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libsync/configfile.cpp b/src/libsync/configfile.cpp index bc4ab69b4..be877e712 100644 --- a/src/libsync/configfile.cpp +++ b/src/libsync/configfile.cpp @@ -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(); } -- 2.30.2