Changeset View
Changeset View
Standalone View
Standalone View
kcms/desktoptheme/package/contents/ui/main.qml
Show All 18 Lines | 1 | /* | |||
---|---|---|---|---|---|
19 | Boston, MA 02110-1301, USA. | 19 | Boston, MA 02110-1301, USA. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.1 | 22 | import QtQuick 2.1 | ||
23 | import QtQuick.Layouts 1.1 | 23 | import QtQuick.Layouts 1.1 | ||
24 | import QtQuick.Dialogs 1.0 | 24 | import QtQuick.Dialogs 1.0 | ||
25 | import QtQuick.Controls 2.3 as QtControls | 25 | import QtQuick.Controls 2.3 as QtControls | ||
26 | import org.kde.kirigami 2.4 as Kirigami | 26 | import org.kde.kirigami 2.4 as Kirigami | ||
27 | import org.kde.kconfig 1.0 // for KAuthorized | 27 | import org.kde.newstuff 1.62 as NewStuff | ||
28 | import org.kde.kcm 1.1 as KCM | 28 | import org.kde.kcm 1.1 as KCM | ||
29 | import org.kde.private.kcms.desktoptheme 1.0 as Private | 29 | import org.kde.private.kcms.desktoptheme 1.0 as Private | ||
30 | 30 | | |||
31 | 31 | | |||
32 | KCM.GridViewKCM { | 32 | KCM.GridViewKCM { | ||
33 | KCM.ConfigModule.quickHelp: i18n("This module lets you choose the Plasma style.") | 33 | KCM.ConfigModule.quickHelp: i18n("This module lets you choose the Plasma style.") | ||
34 | 34 | | |||
35 | view.model: kcm.filteredModel | 35 | view.model: kcm.filteredModel | ||
▲ Show 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 200 | RowLayout { | |||
201 | Layout.alignment: Qt.AlignRight | 201 | Layout.alignment: Qt.AlignRight | ||
202 | 202 | | |||
203 | QtControls.Button { | 203 | QtControls.Button { | ||
204 | text: i18n("Install from File...") | 204 | text: i18n("Install from File...") | ||
205 | icon.name: "document-import" | 205 | icon.name: "document-import" | ||
206 | onClicked: fileDialogLoader.active = true; | 206 | onClicked: fileDialogLoader.active = true; | ||
207 | } | 207 | } | ||
208 | 208 | | |||
209 | QtControls.Button { | 209 | NewStuff.Button { | ||
210 | text: i18n("Get New Plasma Styles...") | 210 | id: newStuffButton | ||
211 | icon.name: "get-hot-new-stuff" | 211 | downloadNewWhat: i18n("Plasma Styles") | ||
212 | onClicked: kcm.getNewStuff(this) | 212 | configFile: "plasma-themes.knsrc" | ||
213 | visible: KAuthorized.authorize("ghns") | 213 | viewMode: NewStuff.Page.ViewMode.Preview | ||
214 | onChangedEntriesChanged: kcm.load(); | ||||
214 | } | 215 | } | ||
215 | } | 216 | } | ||
216 | } | 217 | } | ||
217 | 218 | | |||
218 | Loader { | 219 | Loader { | ||
219 | id: fileDialogLoader | 220 | id: fileDialogLoader | ||
220 | active: false | 221 | active: false | ||
221 | sourceComponent: FileDialog { | 222 | sourceComponent: FileDialog { | ||
Show All 14 Lines |