[gtk/wip/otte/for-master] video: Use cross-fade transition to avoid resizes




commit 882855f8658bb3efc8d450f8fc2a1c4bd0014c0c
Author: Benjamin Otte <otte redhat com>
Date:   Mon Aug 2 20:11:32 2021 +0200

    video: Use cross-fade transition to avoid resizes
    
    Slide animations cause changes in the size requests due to the
    behavior of GtkRevealer. We can avoid those by using cross-fades, which
    don't have that problem.
    
    Besides, cross-fades look better anyway.

 gtk/ui/gtkvideo.ui | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/ui/gtkvideo.ui b/gtk/ui/gtkvideo.ui
index 3760d4b7c8..ce70bb6e23 100644
--- a/gtk/ui/gtkvideo.ui
+++ b/gtk/ui/gtkvideo.ui
@@ -24,7 +24,7 @@
         <child type="overlay">
           <object class="GtkRevealer" id="controls_revealer">
             <property name="valign">end</property>
-            <property name="transition-type">slide-up</property>
+            <property name="transition-type">crossfade</property>
             <child>
               <object class="GtkMediaControls" id="controls">
                 <style>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]