Changeset View
Changeset View
Standalone View
Standalone View
kcms/desktoptheme/package/contents/ui/main.qml
Show All 21 Lines | |||||
22 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 | ||
23 | import QtQuick.Dialogs 1.0 | 23 | import QtQuick.Dialogs 1.0 | ||
24 | import QtQuick.Controls 2.3 as QtControls | 24 | import QtQuick.Controls 2.3 as QtControls | ||
25 | import org.kde.kirigami 2.4 as Kirigami | 25 | import org.kde.kirigami 2.4 as Kirigami | ||
26 | import org.kde.kconfig 1.0 // for KAuthorized | 26 | import org.kde.kconfig 1.0 // for KAuthorized | ||
27 | import org.kde.kcm 1.1 as KCM | 27 | import org.kde.kcm 1.1 as KCM | ||
28 | 28 | | |||
29 | KCM.GridViewKCM { | 29 | KCM.GridViewKCM { | ||
30 | KCM.ConfigModule.quickHelp: i18n("This module lets you choose the Plasma theme.") | 30 | KCM.ConfigModule.quickHelp: i18n("This module lets you choose the Plasma style.") | ||
31 | 31 | | |||
32 | view.model: kcm.desktopThemeModel | 32 | view.model: kcm.desktopThemeModel | ||
33 | view.currentIndex: kcm.selectedPluginIndex | 33 | view.currentIndex: kcm.selectedPluginIndex | ||
34 | 34 | | |||
35 | enabled: !kcm.downloadingFile | 35 | enabled: !kcm.downloadingFile | ||
36 | 36 | | |||
37 | DropArea { | 37 | DropArea { | ||
38 | anchors.fill: parent | 38 | anchors.fill: parent | ||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 116 | RowLayout { | |||
118 | 118 | | |||
119 | QtControls.Button { | 119 | QtControls.Button { | ||
120 | text: i18n("Install from File...") | 120 | text: i18n("Install from File...") | ||
121 | icon.name: "document-import" | 121 | icon.name: "document-import" | ||
122 | onClicked: fileDialogLoader.active = true; | 122 | onClicked: fileDialogLoader.active = true; | ||
123 | } | 123 | } | ||
124 | 124 | | |||
125 | QtControls.Button { | 125 | QtControls.Button { | ||
126 | text: i18n("Get New Plasma Themes...") | 126 | text: i18n("Get New Plasma Styles...") | ||
127 | icon.name: "get-hot-new-stuff" | 127 | icon.name: "get-hot-new-stuff" | ||
128 | onClicked: kcm.getNewStuff(this) | 128 | onClicked: kcm.getNewStuff(this) | ||
129 | visible: KAuthorized.authorize("ghns") | 129 | visible: KAuthorized.authorize("ghns") | ||
130 | } | 130 | } | ||
131 | } | 131 | } | ||
132 | } | 132 | } | ||
133 | 133 | | |||
134 | Loader { | 134 | Loader { | ||
Show All 17 Lines |