effects/Overview: Add "pressed" effect to desktop bar

This commit is contained in:
ivan tkachenko 2022-09-15 06:37:43 +03:00
parent 4eefd27f61
commit 96a8980861
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -151,7 +151,7 @@ Item {
} }
Rectangle { Rectangle {
readonly property bool active: !thumbnail.scaled && (delegate.activeFocus || dropArea.containsDrag || bar.selectedDesktop === delegate.desktop) readonly property bool active: !thumbnail.scaled && (delegate.activeFocus || dropArea.containsDrag || mouseArea.containsPress || bar.selectedDesktop === delegate.desktop)
anchors.fill: parent anchors.fill: parent
radius: 3 radius: 3
color: "transparent" color: "transparent"
@ -161,6 +161,7 @@ Item {
} }
MouseArea { MouseArea {
id: mouseArea
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.MiddleButton acceptedButtons: Qt.LeftButton | Qt.MiddleButton
onClicked: { onClicked: {