[pitivi] timeline: Make ghost layer a bit more beautifull



commit 7f2a3d61eae8c5ce46498cddf73e5f015ff07322
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue May 19 13:57:28 2015 +0200

    timeline: Make ghost layer a bit more beautifull
    
    Summary: Depends on D189
    
    Reviewers: Mathieu_Du
    
    Differential Revision: http://phabricator.freedesktop.org/D190

 pitivi/timeline/layer.py    |    5 +++--
 pitivi/timeline/timeline.py |    4 ++--
 pitivi/utils/ui.py          |    3 ++-
 3 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/timeline/layer.py b/pitivi/timeline/layer.py
index f5b2c1a..c8df409 100644
--- a/pitivi/timeline/layer.py
+++ b/pitivi/timeline/layer.py
@@ -207,6 +207,7 @@ class SpacedSeparator(Gtk.EventBox):
 
         self.get_style_context().add_class("SpacedSeparator")
         self.box.get_style_context().add_class("SpacedSeparator")
+        self.props.height_request = ui.PADDING
 
 
 class LayerControls(Gtk.Bin, Loggable):
@@ -226,7 +227,7 @@ class LayerControls(Gtk.Bin, Loggable):
         self.app = app
 
         sep = SpacedSeparator()
-        self._vbox.pack_start(sep, False, False, 5)
+        self._vbox.pack_start(sep, False, False, 0)
 
         # Popup Menu
         popup = Gtk.Box.new(Gtk.Orientation.VERTICAL, 2)
@@ -271,7 +272,7 @@ class LayerControls(Gtk.Bin, Loggable):
         self._vbox.add(self.audio_control)
 
         sep = SpacedSeparator()
-        self._vbox.pack_start(sep, False, False, 5)
+        self._vbox.pack_start(sep, False, False, 0)
 
         self._vbox.props.vexpand = False
         self.props.width_request = ui.CONTROL_WIDTH
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 461da1e..00f1748 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -779,13 +779,13 @@ class Timeline(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
         bLayer.ui = Layer(bLayer, self)
 
         bLayer.ui.before_sep = SpacedSeparator()
-        layer_widget.pack_start(bLayer.ui.before_sep, False, False, 5)
+        layer_widget.pack_start(bLayer.ui.before_sep, False, False, 0)
 
         self._layers.append(bLayer.ui)
         layer_widget.pack_start(bLayer.ui, True, True, 0)
 
         bLayer.ui.after_sep = SpacedSeparator()
-        layer_widget.pack_start(bLayer.ui.after_sep, False, False, 5)
+        layer_widget.pack_start(bLayer.ui.after_sep, False, False, 0)
 
         self.__layers_vbox.pack_start(layer_widget, True, True, 0)
         self.__layers_controls_vbox.pack_start(bLayer.control_ui, False, False, 0)
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 174d649..c0ac9a6 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -152,7 +152,8 @@ TIMELINE_CSS = """
     }
 
     .SpacedSeparator:hover {
-         background-color: rgba(127, 153, 204, 0.5);
+        background-color: rgba(127, 153, 204, 0.5);
+        opacity:0.5;
     }
 
     .Marquee {


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