Changeset View
Changeset View
Standalone View
Standalone View
src/themeconfig.cpp
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 76 | { | |||
---|---|---|---|---|---|
80 | } | 80 | } | ||
81 | 81 | | |||
82 | QVariantMap args; | 82 | QVariantMap args; | ||
83 | 83 | | |||
84 | args["sddm.conf/Theme/Current"] = index.data(ThemesModel::IdRole); | 84 | args["sddm.conf/Theme/Current"] = index.data(ThemesModel::IdRole); | ||
85 | 85 | | |||
86 | if (!mThemeConfigPath.isEmpty()) { | 86 | if (!mThemeConfigPath.isEmpty()) { | ||
87 | args["theme.conf.user/General/background"] = mBackgroundPath; | 87 | args["theme.conf.user/General/background"] = mBackgroundPath; | ||
88 | args["theme.conf.user/General/type"] = QStringLiteral("image"); | ||||
89 | } else { | ||||
90 | args["theme.conf.user/General/type"] = QStringLiteral("color"); | ||||
88 | } | 91 | } | ||
89 | | ||||
90 | return args; | 92 | return args; | ||
91 | } | 93 | } | ||
92 | 94 | | |||
93 | QString ThemeConfig::themeConfigPath() const | 95 | QString ThemeConfig::themeConfigPath() const | ||
94 | { | 96 | { | ||
95 | return mThemeConfigPath; | 97 | return mThemeConfigPath; | ||
96 | } | 98 | } | ||
97 | 99 | | |||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |