Commit a0d880b2 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Look and Feel KCM] Restore layout reset warning

The "Use Desktop Layout from theme" is quite destructive, add back a warning about it which got lost in the redesign.

Differential Revision: https://phabricator.kde.org/D12890
parent 5d8e4a50
......@@ -57,20 +57,31 @@ KCM.GridViewKCM {
}
}
footer: RowLayout {
QtControls.CheckBox {
id: resetCheckbox
checked: kcm.resetDefaultLayout
text: i18n("Use Desktop Layout from theme")
onCheckedChanged: kcm.resetDefaultLayout = checked;
}
Item {
footer: ColumnLayout {
Kirigami.InlineMessage {
Layout.fillWidth: true
type: Kirigami.MessageType.Warning
text: i18n("Your desktop layout will be lost and reset to the default layout provided by the selected theme.")
visible: resetCheckbox.checked
}
QtControls.Button {
text: i18n("Get New Looks...")
icon.name: "get-hot-new-stuff"
onClicked: kcm.getNewStuff();
RowLayout {
Layout.fillWidth: true
QtControls.CheckBox {
id: resetCheckbox
checked: kcm.resetDefaultLayout
text: i18n("Use Desktop Layout from theme")
onCheckedChanged: kcm.resetDefaultLayout = checked;
}
Item {
Layout.fillWidth: true
}
QtControls.Button {
text: i18n("Get New Looks...")
icon.name: "get-hot-new-stuff"
onClicked: kcm.getNewStuff();
}
}
}
Window {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment