mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-29 08:39: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_IS_RUNNING "app_is_running"
|
||||||
#define APP_THEME_PATH_QRC ":/themes"
|
#define APP_THEME_PATH_QRC ":/themes"
|
||||||
#define APP_SKIN_DEFAULT "base/vergilius.xml"
|
#define APP_SKIN_DEFAULT "base/vergilius.xml"
|
||||||
|
#define APP_THEME_DEFAULT "mini-kfaenza"
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
#define APP_DESKTOP_ENTRY_PATH "@DESKTOP_ENTRY@"
|
#define APP_DESKTOP_ENTRY_PATH "@DESKTOP_ENTRY@"
|
||||||
|
@ -78,7 +78,7 @@ void IconThemeFactory::loadCurrentIconTheme(bool notify_widgets) {
|
|||||||
QStringList installed_themes = getInstalledIconThemes();
|
QStringList installed_themes = getInstalledIconThemes();
|
||||||
QString theme_name_from_settings = Settings::getInstance()->value(APP_CFG_GUI,
|
QString theme_name_from_settings = Settings::getInstance()->value(APP_CFG_GUI,
|
||||||
"icon_theme",
|
"icon_theme",
|
||||||
"mini-kfaenza").toString();
|
APP_THEME_DEFAULT).toString();
|
||||||
|
|
||||||
if (m_currentIconTheme == theme_name_from_settings) {
|
if (m_currentIconTheme == theme_name_from_settings) {
|
||||||
qDebug("Icon theme '%s' already loaded.",
|
qDebug("Icon theme '%s' already loaded.",
|
||||||
@ -100,10 +100,7 @@ void IconThemeFactory::loadCurrentIconTheme(bool notify_widgets) {
|
|||||||
else {
|
else {
|
||||||
// Desired icon theme is not currently available.
|
// Desired icon theme is not currently available.
|
||||||
// Install "default" icon theme instead.
|
// Install "default" icon theme instead.
|
||||||
// NOTE: "Default" icon theme is:
|
qDebug("Icon theme '%s' cannot be loaded because it is not installed. Loading 'system default' theme.",
|
||||||
// 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.",
|
|
||||||
qPrintable(theme_name_from_settings));
|
qPrintable(theme_name_from_settings));
|
||||||
QIcon::setThemeName(APP_THEME_SYSTEM);
|
QIcon::setThemeName(APP_THEME_SYSTEM);
|
||||||
m_currentIconTheme = APP_THEME_SYSTEM;
|
m_currentIconTheme = APP_THEME_SYSTEM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user