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:
parent
40f50c9d0f
commit
b0970bd6c7
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue