[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: make behaviors' enabled bindings delayed in `AnimatedBackground`

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Sep 8 19:45:21 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
078f7edd by Fatih Uzunoglu at 2025-09-08T19:01:25+00:00
qml: make behaviors' enabled bindings delayed in `AnimatedBackground`

- - - - -
48fbe9bc by Fatih Uzunoglu at 2025-09-08T19:01:25+00:00
qml: adjust `enabled` of the content at appropriate time in `DrawerExt`

This fixes the player playqueue background becoming opaque due to
`AcrylicBackground` getting disabled before the out animation finishes.

It is good to keep adjusting enabled, as invisible items keep receiving
keyboard events and retain focus as long as they are enabled.

- - - - -


2 changed files:

- modules/gui/qt/widgets/qml/AnimatedBackground.qml
- modules/gui/qt/widgets/qml/DrawerExt.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/AnimatedBackground.qml
=====================================
@@ -46,7 +46,13 @@ Rectangle {
     //---------------------------------------------------------------------------------------------
 
     Behavior on border.color {
-        enabled: root.enabled
+        Binding on enabled {
+            // this is delayed because we don't want the animations to run as soon
+            // as root is enabled, as the colors often adjusted depending on enabled,
+            // and to have debouncing.
+            delayed: true
+            value: root.enabled
+        }
 
         ColorAnimation {
             id: borderAnimation
@@ -56,8 +62,14 @@ Rectangle {
     }
 
     Behavior on color {
-        enabled: root.enabled
-        
+        Binding on enabled {
+            // this is delayed because we don't want the animations to run as soon
+            // as root is enabled, as the colors often adjusted depending on enabled,
+            // and to have debouncing.
+            delayed: true
+            value: root.enabled
+        }
+
         ColorAnimation {
             id: bgAnimation
 


=====================================
modules/gui/qt/widgets/qml/DrawerExt.qml
=====================================
@@ -114,7 +114,7 @@ FocusScope {
 
                 PropertyAction{
                     target: content
-                    property: "visible"
+                    properties: "visible,enabled"
                 }
             }
         },
@@ -124,7 +124,7 @@ FocusScope {
             SequentialAnimation {
                 PropertyAction {
                     target: content
-                    property: "visible"
+                    properties: "visible,enabled"
                 }
 
                 NumberAnimation {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/4a9c1c584289861fbc5950311774ce4a9f6137fe...48fbe9bcd3e58fec007522571a60d41d972fdb2f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/4a9c1c584289861fbc5950311774ce4a9f6137fe...48fbe9bcd3e58fec007522571a60d41d972fdb2f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list