Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/package/contents/ui/main.qml
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Line(s) | 145 | PlasmaComponents.ToolButton { | |||
---|---|---|---|---|---|
165 | } | 165 | } | ||
166 | } | 166 | } | ||
167 | } | 167 | } | ||
168 | } | 168 | } | ||
169 | } | 169 | } | ||
170 | } | 170 | } | ||
171 | } | 171 | } | ||
172 | QtControls.Label { | 172 | QtControls.Label { | ||
173 | Layout.fillWidth: true | ||||
173 | text: i18nd("kcm_lookandfeel", "Warning: your Plasma Desktop layout will be lost and reset to the default layout provided by the selected theme.") | 174 | text: i18nd("kcm_lookandfeel", "Warning: your Plasma Desktop layout will be lost and reset to the default layout provided by the selected theme.") | ||
174 | visible: resetCheckbox.checked | 175 | visible: resetCheckbox.checked | ||
175 | wrapMode: Text.WordWrap | 176 | wrapMode: Text.WordWrap | ||
176 | Layout.fillWidth: true | 177 | horizontalAlignment: Text.AlignRight //Align it with the resetCheckbox | ||
177 | } | 178 | } | ||
178 | Connections { | 179 | Connections { | ||
179 | target: kcm | 180 | target: kcm | ||
180 | onNeedsSaveChanged: { | 181 | onNeedsSaveChanged: { | ||
181 | if (!needsSave) { | 182 | if (!needsSave) { | ||
182 | resetCheckbox.checked = false; | 183 | resetCheckbox.checked = false; | ||
183 | } | 184 | } | ||
184 | } | 185 | } | ||
185 | } | 186 | } | ||
186 | RowLayout { | 187 | RowLayout { | ||
188 | QtControls.Button { | ||||
189 | anchors.left: parent.left | ||||
190 | text: i18n("Get New Looks...") | ||||
191 | iconName: "get-hot-new-stuff" | ||||
192 | onClicked: kcm.getNewStuff(); | ||||
193 | } | ||||
194 | Item { | ||||
195 | Layout.fillWidth: true | ||||
196 | } | ||||
187 | QtControls.CheckBox { | 197 | QtControls.CheckBox { | ||
188 | id: resetCheckbox | 198 | id: resetCheckbox | ||
189 | checked: kcm.resetDefaultLayout | 199 | checked: kcm.resetDefaultLayout | ||
190 | text: i18n("Use Desktop Layout from theme") | 200 | text: i18n("Use Desktop Layout from theme") | ||
191 | onCheckedChanged: kcm.resetDefaultLayout = checked; | 201 | onCheckedChanged: kcm.resetDefaultLayout = checked; | ||
192 | } | 202 | } | ||
193 | Item { | | |||
194 | Layout.fillWidth: true | | |||
195 | } | | |||
196 | QtControls.Button { | | |||
197 | anchors.right: parent.right | | |||
198 | text: i18n("Get New Looks...") | | |||
199 | iconName: "get-hot-new-stuff" | | |||
200 | onClicked: kcm.getNewStuff(); | | |||
201 | } | | |||
202 | } | 203 | } | ||
203 | } | 204 | } | ||
204 | 205 | | |||
205 | Window { | 206 | Window { | ||
206 | id: previewWindow | 207 | id: previewWindow | ||
207 | property alias url: previewImage.source | 208 | property alias url: previewImage.source | ||
208 | color: Qt.rgba(0, 0, 0, 0.7) | 209 | color: Qt.rgba(0, 0, 0, 0.7) | ||
209 | MouseArea { | 210 | MouseArea { | ||
Show All 24 Lines |