[pitivi] ui: Add transition for clips state change



commit b68609bb07c1fafaa55fc058ec3621ad0ed063e2
Author: Diego Garcia Gangl <dnicolas gmail com>
Date:   Tue May 14 22:04:10 2019 -0300

    ui: Add transition for clips state change

 pitivi/utils/ui.py | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 4b683e07..af4eafca 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -171,6 +171,11 @@ EDITOR_PERSPECTIVE_CSS = """
         background: transparent;
     }
 
+    .AudioBackground,
+    .VideoBackground {
+        transition: background-color 200ms ease-out;
+    }
+
     .AudioBackground {
         background-color: rgb(60, 97, 43);
     }
@@ -179,12 +184,22 @@ EDITOR_PERSPECTIVE_CSS = """
         background-color: rgb(25, 25, 25);
     }
 
+    .VideoUriSource image {
+        transition: opacity 200ms linear;
+        opacity: 1;
+     }
+
+    .VideoUriSource:selected image,
+    .AudioUriSource:selected .AudioUriSource {
+        opacity: 0.15;
+    }
+
     .AudioBackground:selected {
-        background-color: rgb(33, 61, 45);
+        background-color: shade(rgb(60, 97, 43), 0.4);
     }
 
     .VideoBackground:selected {
-        background-color: rgb(5, 5, 5);
+        background-color: shade(rgb(25, 25, 25), 0.4);
     }
 
     .TitleClip .VideoBackground {


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