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