Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/private/theme_p.cpp
Show First 20 Lines • Show All 801 Lines • ▼ Show 20 Line(s) | 750 | { | |||
---|---|---|---|---|---|
802 | complementaryColorScheme = KColorScheme(QPalette::Active, KColorScheme::Complementary, colors); | 802 | complementaryColorScheme = KColorScheme(QPalette::Active, KColorScheme::Complementary, colors); | ||
803 | const QString wallpaperPath = QLatin1String(PLASMA_RELATIVE_DATA_INSTALL_DIR "/desktoptheme/") % theme % QLatin1String("/wallpapers/"); | 803 | const QString wallpaperPath = QLatin1String(PLASMA_RELATIVE_DATA_INSTALL_DIR "/desktoptheme/") % theme % QLatin1String("/wallpapers/"); | ||
804 | hasWallpapers = !QStandardPaths::locate(QStandardPaths::GenericDataLocation, wallpaperPath, QStandardPaths::LocateDirectory).isEmpty(); | 804 | hasWallpapers = !QStandardPaths::locate(QStandardPaths::GenericDataLocation, wallpaperPath, QStandardPaths::LocateDirectory).isEmpty(); | ||
805 | 805 | | |||
806 | // load the wallpaper settings, if any | 806 | // load the wallpaper settings, if any | ||
807 | if (realTheme) { | 807 | if (realTheme) { | ||
808 | const QString metadataPath(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String(PLASMA_RELATIVE_DATA_INSTALL_DIR "/desktoptheme/") % theme % QLatin1String("/metadata.desktop"))); | 808 | const QString metadataPath(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String(PLASMA_RELATIVE_DATA_INSTALL_DIR "/desktoptheme/") % theme % QLatin1String("/metadata.desktop"))); | ||
809 | KConfig metadata(metadataPath, KConfig::SimpleConfig); | 809 | KConfig metadata(metadataPath, KConfig::SimpleConfig); | ||
810 | pluginInfo = KPluginInfo(metadataPath); | 810 | pluginMetaData = KPluginMetaData(metadataPath); | ||
811 | 811 | | |||
812 | processContrastSettings(&metadata); | 812 | processContrastSettings(&metadata); | ||
813 | processBlurBehindSettings(&metadata); | 813 | processBlurBehindSettings(&metadata); | ||
814 | 814 | | |||
815 | processWallpaperSettings(&metadata); | 815 | processWallpaperSettings(&metadata); | ||
816 | 816 | | |||
817 | KConfigGroup cg(&metadata, "Settings"); | 817 | KConfigGroup cg(&metadata, "Settings"); | ||
818 | QString fallback = cg.readEntry("FallbackTheme", QString()); | 818 | QString fallback = cg.readEntry("FallbackTheme", QString()); | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |