diff --git a/applet/contents/ui/ConnectionItem.qml b/applet/contents/ui/ConnectionItem.qml --- a/applet/contents/ui/ConnectionItem.qml +++ b/applet/contents/ui/ConnectionItem.qml @@ -48,10 +48,16 @@ property real rxBytes: 0 property real txBytes: 0 - checked: connectionItem.containsMouse enabled: true height: expanded ? baseHeight + separator.height + expandableComponentLoader.height + (2 * Math.round(units.gridUnit / 3)) : baseHeight + onContainsMouseChanged: { + if (containsMouse) { + devicesView.currentIndex = index + } else { + devicesView.currentIndex = -1 + } + } ColumnLayout { anchors.fill: parent @@ -111,6 +117,7 @@ PlasmaComponents.Button { id: stateChangeButton Layout.alignment: Qt.AlignVCenter | Qt.AlignRight + Layout.rightMargin: Math.round(units.gridUnit / 2) opacity: connectionView.currentVisibleButtonIndex == index ? 1 : 0 visible: opacity != 0 text: (ConnectionState == PlasmaNM.Enums.Deactivated) ? i18n("Connect") : i18n("Disconnect") diff --git a/applet/contents/ui/PopupDialog.qml b/applet/contents/ui/PopupDialog.qml --- a/applet/contents/ui/PopupDialog.qml +++ b/applet/contents/ui/PopupDialog.qml @@ -72,6 +72,9 @@ boundsBehavior: Flickable.StopAtBounds section.property: showSections ? "Section" : "" section.delegate: Header { text: section } + highlight: PlasmaComponents.Highlight { } + highlightMoveDuration: 0 + highlightResizeDuration: 0 delegate: ConnectionItem { } } }