Commit b8bdcdd8 authored by Yari Polla's avatar Yari Polla Committed by Devin Lin
Browse files

widgets/krunner: add ability to close the widget with a tap on an empty area

parent 204482f4
Pipeline #204706 passed with stage
in 1 minute and 55 seconds
......@@ -177,7 +177,6 @@ Item {
NumberAnimation { duration: PlasmaCore.Units.shortDuration }
}
Layout.fillHeight: true
Layout.fillWidth: true
Milou.ResultsListView {
......@@ -207,8 +206,8 @@ Item {
Rectangle {
anchors.fill: parent
color: delegate.pressed ? Qt.rgba(255, 255, 255, 0.2) : (delegate.containsMouse ? Qt.rgba(255, 255, 255, 0.05) : "transparent")
Behavior on color {
ColorAnimation { duration: PlasmaCore.Units.shortDuration }
Behavior on color {
ColorAnimation { duration: PlasmaCore.Units.shortDuration }
}
}
......@@ -283,6 +282,13 @@ Item {
}
}
}
MouseArea {
Layout.fillWidth: true
Layout.fillHeight: true
onClicked: close()
}
}
}
}
Supports Markdown
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