Default icon theme.

This commit is contained in:
Martin Rotter 2013-11-15 11:38:21 +01:00
parent e0e1f0adfd
commit b94007b554
2 changed files with 3 additions and 5 deletions

View File

@ -51,6 +51,7 @@
#define APP_IS_RUNNING "app_is_running"
#define APP_THEME_PATH_QRC ":/themes"
#define APP_SKIN_DEFAULT "base/vergilius.xml"
#define APP_THEME_DEFAULT "mini-kfaenza"
#if defined(Q_OS_LINUX)
#define APP_DESKTOP_ENTRY_PATH "@DESKTOP_ENTRY@"

View File

@ -78,7 +78,7 @@ void IconThemeFactory::loadCurrentIconTheme(bool notify_widgets) {
QStringList installed_themes = getInstalledIconThemes();
QString theme_name_from_settings = Settings::getInstance()->value(APP_CFG_GUI,
"icon_theme",
"mini-kfaenza").toString();
APP_THEME_DEFAULT).toString();
if (m_currentIconTheme == theme_name_from_settings) {
qDebug("Icon theme '%s' already loaded.",
@ -100,10 +100,7 @@ void IconThemeFactory::loadCurrentIconTheme(bool notify_widgets) {
else {
// Desired icon theme is not currently available.
// Install "default" icon theme instead.
// NOTE: "Default" icon theme is:
// a) system icon theme on Linux,
// b) no icon theme on other platforms.
qDebug("Icon theme '%s' cannot be loaded because it is not installed. Loading 'default' theme.",
qDebug("Icon theme '%s' cannot be loaded because it is not installed. Loading 'system default' theme.",
qPrintable(theme_name_from_settings));
QIcon::setThemeName(APP_THEME_SYSTEM);
m_currentIconTheme = APP_THEME_SYSTEM;