Skip to content

Commit

Permalink
Complete redesigned press effect for the buttons and list items
Browse files Browse the repository at this point in the history
Based on 7ac8949 12/3/2024 which removed activeDelegate coloring
on pressed/release of the MouseArea which was replaced with a
PressArea, but did not remove the coloring onReleased.
  • Loading branch information
MikeTrahearn-Qinetic committed Dec 19, 2024
1 parent 8642d96 commit 0d874e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/NotificationDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Rectangle {
width: parent ? parent.width : 0
height: textColumn.height
radius: Theme.geometry_listItem_radius
color: /*acknowledged && active ? Theme.color_background_secondary :*/ Theme.color_background_secondary
color: Theme.color_background_secondary

Rectangle {
anchors {
Expand Down
8 changes: 1 addition & 7 deletions pages/NotificationsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,7 @@ SwipeViewPage {
anchors.fill: parent
enabled: !activeDelegate.acknowledged
radius: activeDelegate.radius

onReleased: {
activeDelegate.model.acknowledged = true
if (activeDelegate.notification.active) {
activeDelegate.color = Theme.color_background_secondary
}
}
onReleased: activeDelegate.model.acknowledged = true
}
}
}
Expand Down

0 comments on commit 0d874e2

Please sign in to comment.