Commit fb77be09 authored by Nate Graham's avatar Nate Graham
Browse files

applets/taskmanager: animate when unread badge moves down

When the audio indicator appears, it appears with an animation. But the
unread badge did not animate to get out of its way. Now it does.
parent 082a1bb3
Pipeline #232101 passed with stage
in 3 minutes and 34 seconds
......@@ -23,6 +23,9 @@ Item {
anchors.rightMargin: Qt.application.layoutDirection === Qt.RightToLeft ? 0 : -offset
anchors.leftMargin: Qt.application.layoutDirection === Qt.RightToLeft ? -offset : 0
y: shiftBadgeDown ? (icon.height/2) : 0
Behavior on y {
NumberAnimation { duration: Kirigami.Durations.longDuration }
}
visible: task.smartLauncherItem.countVisible
width: badgeRect.width + offset * 2
......@@ -78,6 +81,9 @@ Item {
anchors.right: Qt.application.layoutDirection === Qt.RightToLeft ? undefined : parent.right
anchors.left: Qt.application.layoutDirection === Qt.RightToLeft ? parent.left : undefined
y: offset + (shiftBadgeDown ? (icon.height/2) : 0)
Behavior on y {
NumberAnimation { duration: Kirigami.Durations.longDuration }
}
height: Math.round(parent.height * 0.4)
visible: task.smartLauncherItem.countVisible
number: task.smartLauncherItem.count
......
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