[pitivi] layer: Move CSS out of constructor
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] layer: Move CSS out of constructor
- Date: Thu, 26 Sep 2019 19:46:06 +0000 (UTC)
commit b15a3d2671eaeec9f86e13b725c721ba990b872c
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Sep 24 10:30:32 2019 +0200
layer: Move CSS out of constructor
pitivi/timeline/layer.py | 8 --------
pitivi/utils/ui.py | 5 +++++
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/timeline/layer.py b/pitivi/timeline/layer.py
index 2499227b..2e8e4220 100644
--- a/pitivi/timeline/layer.py
+++ b/pitivi/timeline/layer.py
@@ -85,14 +85,6 @@ class LayerControls(Gtk.EventBox, Loggable):
self.__updateName()
name_row.pack_start(self.name_entry, True, True, 0)
- entry_provider = Gtk.CssProvider()
- entry_css = ("entry:not(:focus) { border: 1px solid transparent;"
- "background: transparent; }").encode("UTF-8")
- entry_provider.load_from_data(entry_css)
- Gtk.StyleContext.add_provider(self.name_entry.get_style_context(),
- entry_provider,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
-
self.menubutton = Gtk.MenuButton.new()
self.menubutton.props.valign = Gtk.Align.CENTER
self.menubutton.props.relief = Gtk.ReliefStyle.NONE
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index f3566214..1d8c9e27 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -163,6 +163,11 @@ EDITOR_PERSPECTIVE_CSS = """
opacity: 0.8;
}
+ .LayerControlEntry:not(:focus) {
+ border: 1px solid transparent;
+ background: transparent;
+ }
+
.AudioBackground {
background-color: #496c21;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]