kcms/desktop: make list items conform to HIG

* Use correct deletion icon (this isn't a file).
* Use alternating list backgrounds to help line up the content on the
  left and right.
This commit is contained in:
Nate Graham 2024-07-04 10:43:19 -06:00
parent 40f50c9d0f
commit b0970bd6c7

View file

@ -65,6 +65,10 @@ KCM.ScrollViewKCM {
down: false // Disable press effect
hoverEnabled: false
// use alternating background colors to visually connect list items'
// left and right side content elements
Kirigami.Theme.useAlternateBackgroundColor: true
contentItem: RowLayout {
QQC2.TextField {
id: nameField
@ -135,7 +139,7 @@ KCM.ScrollViewKCM {
DelegateButton {
enabled: model && !model.IsMissing && desktopsList.count !== 1
icon.name: "edit-delete"
icon.name: "edit-delete-remove-symbolic"
text: i18nc("@info:tooltip", "Remove")
onClicked: kcm.desktopsModel.removeDesktop(model.Id)
}