Branded clients have more size variety for their icons
authorKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 23 Jul 2020 16:48:59 +0000 (18:48 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Tue, 28 Jul 2020 09:20:34 +0000 (09:20 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/theme.cpp

index d475b5b56b94285944dc07a9858cc7090a3d59d8..8274e15803d3decadd56f89c20d1cd23817c5603 100644 (file)
@@ -144,7 +144,8 @@ QIcon Theme::themeIcon(const QString &name, bool sysTray) const
             return cached = QIcon::fromTheme(name);
         }
 
-        const auto sizes = QVector<int>{ 16, 32, 64, 128, 256 };
+        const auto sizes = isBranded() ? QVector<int>{ 16, 22, 32, 48, 64, 128, 256, 512, 1024 }
+                                       : QVector<int>{ 16, 32, 64, 128, 256 };
         for (int size : sizes) {
             QString svgName = QString::fromLatin1(":/client/theme/%1/%2.svg").arg(flavor).arg(name);
             QSvgRenderer renderer(svgName);