mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-16 10:52:41 +01:00
Default icon theme.
This commit is contained in:
parent
e0e1f0adfd
commit
b94007b554
@ -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@"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user