diff --git a/Bar/Modules/SystemTray.qml b/Bar/Modules/SystemTray.qml index 50afb04..177871d 100644 --- a/Bar/Modules/SystemTray.qml +++ b/Bar/Modules/SystemTray.qml @@ -23,27 +23,11 @@ Row { delegate: Item { width: 24 * Theme.uiScale height: 24 * Theme.uiScale - // Hide Spotify icon, or adjust to your liking - visible: modelData && modelData.id !== "spotify" + + visible: modelData property bool isHovered: trayMouseArea.containsMouse - // Hover scale animation - scale: isHovered ? 1.15 : 1.0 - Behavior on scale { - NumberAnimation { - duration: 150 - easing.type: Easing.OutCubic - } - } - - // Subtle rotation on hover - rotation: isHovered ? 5 : 0 - Behavior on rotation { - NumberAnimation { - duration: 200 - easing.type: Easing.OutCubic - } - } + // No animations - static display Rectangle { anchors.centerIn: parent @@ -74,13 +58,6 @@ Row { return icon; } opacity: status === Image.Ready ? 1 : 0 - - Behavior on opacity { - NumberAnimation { - duration: 300 - easing.type: Easing.OutCubic - } - } Component.onCompleted: {} } } diff --git a/Widgets/Notification/NotificationPopup.qml b/Widgets/Notification/NotificationPopup.qml index e62bd24..a89b948 100644 --- a/Widgets/Notification/NotificationPopup.qml +++ b/Widgets/Notification/NotificationPopup.qml @@ -165,7 +165,7 @@ Item { x: appeared ? 0 : width opacity: dismissed ? 0 : 1 - height: dismissed ? 0 : contentRow.height + 20 + height: dismissed ? 0 : Math.max(contentRow.height, 60) + 20 Row { id: contentRow @@ -328,7 +328,7 @@ Item { NumberAnimation { target: notificationDelegate property: "height" - to: contentRow.height + 20 + to: Math.max(contentRow.height, 60) + 20 duration: 150 } NumberAnimation { @@ -345,7 +345,14 @@ Item { opacity = 0; height = 0; x = width; - appearAnimation.start(); + // Small delay to ensure contentRow has proper height + Timer { + interval: 10 + repeat: false + onTriggered: { + appearAnimation.start(); + } + } for (let i = 0; i < notificationModel.count; i++) { if (notificationModel.get(i).id === notificationDelegate.id) { var oldItem = notificationModel.get(i);