Fall back to "ubuntu-mobile" icon theme if $UBUNTU_ICON_THEME is unset
commit1da95d4701fe8c6c17e559122dcf6caa7ada941f
authorLars Uebernickel <lars.uebernickel@canonical.com>
dateTue 3 Sep 2013, 14:39 (13 years ago)
parent33445d4
debian/control+1
@@ -42,6 +42,7 @@ Build-Depends: cmake,
4242 qtdeclarative5-ubuntu-ui-toolkit-plugin,
4343 qtdeclarative5-xmllistmodel-plugin,
4444 ttf-ubuntu-font-family,
45+ ubuntu-mobile-icons,
4546Standards-Version: 3.9.4
4647Homepage: http://launchpad.net/unity
4748# If you aren't a member of ~unity-team but need to upload
main.cpp+3−2
@@ -65,9 +65,10 @@ void appendImportPaths(QQmlEngine *engine, const QStringList &paths)
6565
6666void resolveIconTheme() {
6767 const char *ubuntuIconTheme = getenv("UBUNTU_ICON_THEME");
68− if (ubuntuIconTheme != NULL) {
69− QIcon::setThemeName(ubuntuIconTheme);
68+ if (ubuntuIconTheme == NULL) {
69+ ubuntuIconTheme = "ubuntu-mobile";
7070 }
71+ QIcon::setThemeName(ubuntuIconTheme);
7172}
7273} // namespace {
7374