Skip to content

Commit

Permalink
Merge pull request #2725 from nextcloud/default-mono-icons
Browse files Browse the repository at this point in the history
Make monochrome icons the default on Linux and Mac OS.
  • Loading branch information
Kevin Ottens authored Dec 16, 2020
2 parents e308147 + 016410d commit 0d084ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libsync/configfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 0d084ee

Please sign in to comment.