icons: Override system icon theme by default
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 18 Jun 2018 21:04:30 +0000 (23:04 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 18 Jun 2018 21:04:30 +0000 (23:04 +0200)
Preliminary reports from the field are in, and apparently the
fallback theme handling is too fragile to unleash it onto
unsuspecting users, due to bugs in Qt, desktop environments and
just plain stupid desktop themes.

Override by default to get a consistent look of Quassel in most
cases. Users can still actively choose the other way.

src/qtui/qtui.cpp
src/qtui/settingspages/appearancesettingspage.ui

index a37bc40..d899ba8 100644 (file)
@@ -345,7 +345,7 @@ void QtUi::refreshIconTheme()
         }
     }
 
         }
     }
 
-    if (_systemIconTheme.isEmpty() || _systemIconTheme == fallbackTheme || s.value("Icons/OverrideSystemTheme", false).toBool()) {
+    if (_systemIconTheme.isEmpty() || _systemIconTheme == fallbackTheme || s.value("Icons/OverrideSystemTheme", true).toBool()) {
         // We have a valid fallback theme and want to override the system theme (if it's even defined), so we're basically done
         QIcon::setThemeName(fallbackTheme);
         emit iconThemeRefreshed();
         // We have a valid fallback theme and want to override the system theme (if it's even defined), so we're basically done
         QIcon::setThemeName(fallbackTheme);
         emit iconThemeRefreshed();
index 0338353..26f29d1 100644 (file)
         <string>Override system theme</string>
        </property>
        <property name="checked">
         <string>Override system theme</string>
        </property>
        <property name="checked">
-        <bool>false</bool>
+        <bool>true</bool>
        </property>
        <property name="settingsKey" stdset="0">
         <string notr="true">/UiStyle/Icons/OverrideSystemTheme</string>
        </property>
        <property name="defaultValue" stdset="0">
        </property>
        <property name="settingsKey" stdset="0">
         <string notr="true">/UiStyle/Icons/OverrideSystemTheme</string>
        </property>
        <property name="defaultValue" stdset="0">
-        <bool>false</bool>
+        <bool>true</bool>
        </property>
       </widget>
      </item>
        </property>
       </widget>
      </item>