Changeset View
Changeset View
Standalone View
Standalone View
src/themeconfig.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | |||||
74 | { | 74 | { | ||
75 | QModelIndex index = configUi->themesListView->currentIndex(); | 75 | QModelIndex index = configUi->themesListView->currentIndex(); | ||
76 | if (!index.isValid()) { | 76 | if (!index.isValid()) { | ||
77 | return QVariantMap(); | 77 | return QVariantMap(); | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | QVariantMap args; | 80 | QVariantMap args; | ||
81 | 81 | | |||
82 | args[QStringLiteral("kde_settings.conf/Theme/Current")] = index.data(ThemesModel::IdRole); | 82 | args[QStringLiteral("sddm.conf/Theme/Current")] = index.data(ThemesModel::IdRole); | ||
83 | 83 | | |||
84 | if (!mThemeConfigPath.isEmpty()) { | 84 | if (!mThemeConfigPath.isEmpty()) { | ||
85 | if (!mBackgroundPath.isEmpty()) { | 85 | if (!mBackgroundPath.isEmpty()) { | ||
86 | args[QStringLiteral("theme.conf.user/General/background")] = mBackgroundPath; | 86 | args[QStringLiteral("theme.conf.user/General/background")] = mBackgroundPath; | ||
87 | args[QStringLiteral("theme.conf.user/General/type")] = QStringLiteral("image"); | 87 | args[QStringLiteral("theme.conf.user/General/type")] = QStringLiteral("image"); | ||
88 | } else { | 88 | } else { | ||
89 | args[QStringLiteral("theme.conf.user/General/type")] = QStringLiteral("color"); | 89 | args[QStringLiteral("theme.conf.user/General/type")] = QStringLiteral("color"); | ||
90 | } | 90 | } | ||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |