Commit 2c0e20a1 authored by Alexandru Băluț's avatar Alexandru Băluț Committed by Thibault Saunier

elements: Make sure the keyframe widget is transparent

On themes like Greybird the widgets have a background when they are
selected. This has the effect of hiding the clip.

Fixes https://phabricator.freedesktop.org/T3503Reviewed-by: Thibault Saunier's avatarThibault Saunier <tsaunier@gnome.org>
Differential Revision: https://phabricator.freedesktop.org/D676
parent 19f2405c
......@@ -101,6 +101,7 @@ class KeyframeCurve(FigureCanvas, Loggable):
self.__source.connect("value-changed", self.__controlSourceChangedCb)
self.__propertyName = binding.props.name
self.__resetTooltip()
self.get_style_context().add_class("KeyframeCurve")
self.__ylim_min, self.__ylim_max = KeyframeCurve.YLIM_OVERRIDES.get(
binding.pspec, (0.0, 1.0))
......@@ -341,7 +342,8 @@ class TimelineElement(Gtk.Layout, timelineUtils.Zoomable, Loggable):
self._bElement.selected.connect(
"selected-changed", self.__selectedChangedCb)
self.__width = self.__height = 0
self.__width = 0
self.__height = 0
# Needed for effect's keyframe toggling
self._bElement.ui_element = self
......
......@@ -112,6 +112,10 @@ TIMELINE_CSS = """
background-color: #0f0f0f;
}
.KeyframeCurve {
background-color: rgba(0, 0, 0, 0);
}
.Trimbar {
background-image: url('%(trimbar_normal)s');
opacity:0.5;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment