fix animations

This commit is contained in:
end-4
2025-04-19 23:57:50 +02:00
parent b879489d43
commit 905d26570f
4 changed files with 22 additions and 8 deletions
@@ -65,7 +65,7 @@ Rectangle {
// The thing when collapsed
RowLayout {
id: collapsedBottomWidgetGroupRow
visible: opacity != 0
visible: opacity > 0
Behavior on opacity {
NumberAnimation {
duration: Appearance.animation.elementDecel.duration / 2
@@ -104,7 +104,7 @@ Rectangle {
RowLayout {
id: bottomWidgetGroupRow
visible: opacity != 0
visible: opacity > 0
Behavior on opacity {
NumberAnimation {
duration: Appearance.animation.elementDecel.duration / 2
@@ -81,7 +81,16 @@ Item {
Layout.alignment: Qt.AlignVCenter
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: `${notificationWidgetList.length} Notifications`
text: `${notificationWidgetList.length} notification${notificationWidgetList.length > 1 ? "s" : ""}`
opacity: notificationWidgetList.length > 0 ? 1 : 0
visible: opacity > 0
Behavior on opacity {
NumberAnimation {
duration: Appearance.animation.elementDecel.duration
easing.type: Appearance.animation.elementDecel.type
}
}
}
}
}