[vlc-commits] [Git][videolan/vlc][master] qml: avoid `OpacityAnimator` on fades that can be interrupted

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Wed Oct 28 12:42:07 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
b90f66b5 by Leon Vitanos at 2026-10-28T12:35:42+01:00
qml: avoid `OpacityAnimator` on fades that can be interrupted

Interrupting an `OpacityAnimator` mid-fade stalls the UI (QTBUG-151700).

- - - - -


7 changed files:

- modules/gui/qt/medialibrary/qml/MediaView.qml
- modules/gui/qt/medialibrary/qml/MusicAlbums.qml
- modules/gui/qt/medialibrary/qml/MusicArtist.qml
- modules/gui/qt/medialibrary/qml/VideoGridDisplay.qml
- modules/gui/qt/player/qml/LyricsFlickable.qml
- modules/gui/qt/widgets/qml/FadingEdge.qml
- modules/gui/qt/widgets/qml/MediaCover.qml


Changes:

=====================================
modules/gui/qt/medialibrary/qml/MediaView.qml
=====================================
@@ -190,7 +190,8 @@ MainViewLoader {
                 }
 
                 Behavior on opacity {
-                    OpacityAnimator {
+                    // NOTE: Do not use `OpacityAnimator` here, interrupting the fade stalls the UI (QTBUG-151700).
+                    NumberAnimation {
                         duration: VLCStyle.duration_short
                     }
                 }


=====================================
modules/gui/qt/medialibrary/qml/MusicAlbums.qml
=====================================
@@ -139,7 +139,8 @@ MainViewLoader {
                 }
 
                 Behavior on opacity {
-                    OpacityAnimator {
+                    // NOTE: Do not use `OpacityAnimator` here, interrupting the fade stalls the UI (QTBUG-151700).
+                    NumberAnimation {
                         duration: VLCStyle.duration_short
                     }
                 }


=====================================
modules/gui/qt/medialibrary/qml/MusicArtist.qml
=====================================
@@ -617,7 +617,8 @@ FocusScope {
                 }
 
                 Behavior on opacity {
-                    OpacityAnimator {
+                    // NOTE: Do not use `OpacityAnimator` here, interrupting the fade stalls the UI (QTBUG-151700).
+                    NumberAnimation {
                         duration: VLCStyle.duration_short
                     }
                 }


=====================================
modules/gui/qt/medialibrary/qml/VideoGridDisplay.qml
=====================================
@@ -127,7 +127,8 @@ Widgets.ExpandGridItemView {
         // Animations
 
         Behavior on opacity {
-            OpacityAnimator {
+            // NOTE: Do not use `OpacityAnimator` here, interrupting the fade stalls the UI (QTBUG-151700).
+            NumberAnimation {
                 duration: VLCStyle.duration_short
             }
         }


=====================================
modules/gui/qt/player/qml/LyricsFlickable.qml
=====================================
@@ -142,7 +142,8 @@ Flickable {
                 }
                 Behavior on opacity {
                     enabled: lyricsFlickable.animationsEnabled
-                    OpacityAnimator { duration: VLCStyle.duration_long }
+                    // NOTE: Do not use `OpacityAnimator` here, interrupting the fade stalls the UI (QTBUG-151700).
+                    NumberAnimation { duration: VLCStyle.duration_long }
                 }
 
                 TapHandler {


=====================================
modules/gui/qt/widgets/qml/FadingEdge.qml
=====================================
@@ -117,7 +117,6 @@ Item {
         implicitHeight: root.fadeSize
         implicitWidth: root.fadeSize
 
-        // NOTE: `OpacityAnimator` updates the opacity once the animation finishes.
         visible: (opacity > 0.0 || enabled) && !root.useLayering
 
         opacity: enabled ? 1.0 : 0.0
@@ -128,7 +127,8 @@ Item {
 
             enabled: false
 
-            OpacityAnimator {
+            // NOTE: Do not use `OpacityAnimator` here, interrupting the fade stalls the UI (QTBUG-151700).
+            NumberAnimation {
                 duration: VLCStyle.duration_short
                 easing.type: Easing.InOutSine
             }


=====================================
modules/gui/qt/widgets/qml/MediaCover.qml
=====================================
@@ -184,6 +184,7 @@ Item {
             opacity: 0.0
 
             Behavior on opacity {
+                // NOTE: Do not use `OpacityAnimator` here, interrupting the fade stalls the UI (QTBUG-151700).
                 NumberAnimation {
                     duration: VLCStyle.duration_short
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b90f66b58a226564650af85660e4d7355c7dfb27

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b90f66b58a226564650af85660e4d7355c7dfb27
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list