Commit 9fc4dde5 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

Port config dialog list items to Kirigami.SwipeListItem

This is a common component that handles desktop as well as mobile user
interfaces. We can use it now that its desktop representation is a bit
more user-friendly.
parent cc66f515
Pipeline #46775 passed with stage
in 9 minutes and 45 seconds
......@@ -237,25 +237,20 @@ Window {
model: ElisaConfigurationDialog.rootPath
delegate: Kirigami.BasicListItem {
implicitHeight: Kirigami.Units.gridUnit * 2
delegate: Kirigami.SwipeListItem {
// Don't need a highlight effect on hover
activeBackgroundColor: "transparent"
activeTextColor: myPalette.text
QQC2.Label {
text: modelData
}
text: modelData
actions: Kirigami.Action {
iconName: "edit-delete"
text: i18n("Stop looking for music here")
trailing: QQC2.Button {
icon.name: "edit-delete"
visible: pathList.count > 1
onClicked: ElisaConfigurationDialog.removeMusicLocation(modelData)
Accessible.onPressAction: onClicked
QQC2.ToolTip {
text: i18n("Stop looking for music here")
}
onTriggered: ElisaConfigurationDialog.removeMusicLocation(modelData)
}
}
}
......
Markdown is supported
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