Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/package/contents/ui/main.qml
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 31 | view.delegate: KCM.GridDelegate { | |||
---|---|---|---|---|---|
52 | ] | 52 | ] | ||
53 | onClicked: { | 53 | onClicked: { | ||
54 | kcm.selectedPlugin = model.pluginName; | 54 | kcm.selectedPlugin = model.pluginName; | ||
55 | view.forceActiveFocus(); | 55 | view.forceActiveFocus(); | ||
56 | resetCheckbox.checked = false; | 56 | resetCheckbox.checked = false; | ||
57 | } | 57 | } | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | footer: RowLayout { | 60 | footer: ColumnLayout { | ||
61 | Kirigami.InlineMessage { | ||||
62 | Layout.fillWidth: true | ||||
63 | type: Kirigami.MessageType.Warning | ||||
64 | text: i18n("Your desktop layout will be lost and reset to the default layout provided by the selected theme.") | ||||
65 | visible: resetCheckbox.checked | ||||
66 | } | ||||
67 | | ||||
68 | RowLayout { | ||||
69 | Layout.fillWidth: true | ||||
70 | | ||||
61 | QtControls.CheckBox { | 71 | QtControls.CheckBox { | ||
62 | id: resetCheckbox | 72 | id: resetCheckbox | ||
63 | checked: kcm.resetDefaultLayout | 73 | checked: kcm.resetDefaultLayout | ||
64 | text: i18n("Use Desktop Layout from theme") | 74 | text: i18n("Use Desktop Layout from theme") | ||
65 | onCheckedChanged: kcm.resetDefaultLayout = checked; | 75 | onCheckedChanged: kcm.resetDefaultLayout = checked; | ||
66 | } | 76 | } | ||
67 | Item { | 77 | Item { | ||
68 | Layout.fillWidth: true | 78 | Layout.fillWidth: true | ||
69 | } | 79 | } | ||
70 | QtControls.Button { | 80 | QtControls.Button { | ||
71 | text: i18n("Get New Looks...") | 81 | text: i18n("Get New Looks...") | ||
72 | icon.name: "get-hot-new-stuff" | 82 | icon.name: "get-hot-new-stuff" | ||
73 | onClicked: kcm.getNewStuff(); | 83 | onClicked: kcm.getNewStuff(); | ||
74 | } | 84 | } | ||
75 | } | 85 | } | ||
86 | } | ||||
76 | Window { | 87 | Window { | ||
77 | id: previewWindow | 88 | id: previewWindow | ||
78 | property alias url: previewImage.source | 89 | property alias url: previewImage.source | ||
79 | color: Qt.rgba(0, 0, 0, 0.7) | 90 | color: Qt.rgba(0, 0, 0, 0.7) | ||
80 | MouseArea { | 91 | MouseArea { | ||
81 | anchors.fill: parent | 92 | anchors.fill: parent | ||
82 | Image { | 93 | Image { | ||
83 | id: previewImage | 94 | id: previewImage | ||
Show All 21 Lines |