Commit 24f2bd58 authored by Niccolò Venerandi's avatar Niccolò Venerandi Committed by Niccolò Venerandi

Use consistent highlight

Summary: This uses the PlasmaComponents.Highlight feature to be consistent with other lists

Reviewers: #plasma, #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27824
parent 13bfdd47
......@@ -37,8 +37,15 @@ PlasmaComponents.ListItem {
property var currentDeviceDetails : []
height: expanded ? baseHeight + expandableComponentLoader.height + Math.round(units.gridUnit / 3) : baseHeight
checked: containsMouse
enabled: true
onContainsMouseChanged: {
if (containsMouse) {
devicesView.currentIndex = index
} else {
devicesView.currentIndex = -1
}
}
Item {
id: deviceItemBase
......
......@@ -144,6 +144,9 @@ FocusScope {
section.delegate: Header {
text: section == "Connected" ? i18n("Connected devices") : i18n("Available devices")
}
highlight: PlasmaComponents.Highlight { }
highlightMoveDuration: 0
highlightResizeDuration: 0
delegate: DeviceItem { }
}
}
......
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