Changeset View
Changeset View
Standalone View
Standalone View
kcms/ksplash/package/contents/ui/main.qml
Show All 23 Lines | |||||
24 | import org.kde.kirigami 2.0 // for Units | 24 | import org.kde.kirigami 2.0 // for Units | ||
25 | import org.kde.plasma.components 2.0 as PlasmaComponents | 25 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
26 | 26 | | |||
27 | Item { | 27 | Item { | ||
28 | implicitWidth: Units.gridUnit * 20 | 28 | implicitWidth: Units.gridUnit * 20 | ||
29 | implicitHeight: Units.gridUnit * 20 | 29 | implicitHeight: Units.gridUnit * 20 | ||
30 | 30 | | |||
31 | SystemPalette {id: syspal} | 31 | SystemPalette {id: syspal} | ||
32 | QtControls.ScrollView { | 32 | ColumnLayout { | ||
33 | anchors.fill: parent | 33 | anchors.fill: parent | ||
34 | QtControls.ScrollView { | ||||
35 | Layout.fillWidth: true | ||||
36 | Layout.fillHeight: true | ||||
34 | GridView { | 37 | GridView { | ||
35 | id: grid | 38 | id: grid | ||
36 | model: kcm.splashModel | 39 | model: kcm.splashModel | ||
37 | cellWidth: Math.floor(grid.width / Math.max(Math.floor(grid.width / (Units.gridUnit*12)), 3)) | 40 | cellWidth: Math.floor(grid.width / Math.max(Math.floor(grid.width / (Units.gridUnit*12)), 3)) | ||
38 | cellHeight: cellWidth / 1.6 | 41 | cellHeight: cellWidth / 1.6 | ||
39 | 42 | | |||
40 | onCountChanged: { | 43 | onCountChanged: { | ||
41 | grid.currentIndex = kcm.selectedPluginIndex; | 44 | grid.currentIndex = kcm.selectedPluginIndex; | ||
▲ Show 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 146 | Behavior on opacity { | |||
147 | } | 150 | } | ||
148 | } | 151 | } | ||
149 | } | 152 | } | ||
150 | } | 153 | } | ||
151 | } | 154 | } | ||
152 | } | 155 | } | ||
153 | } | 156 | } | ||
154 | } | 157 | } | ||
158 | RowLayout { | ||||
159 | Item { | ||||
160 | Layout.fillWidth: true | ||||
161 | } | ||||
162 | QtControls.Button { | ||||
163 | iconName: "get-hot-new-stuff" | ||||
164 | text: i18n("&Get New Theme...") | ||||
165 | onClicked: kcm.getNewClicked(); | ||||
166 | enabled: kcm.canInstall | ||||
167 | } | ||||
168 | } | ||||
169 | } | ||||
155 | } | 170 | } |