[gedit-plugins] Make commander entry appear transparent
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Make commander entry appear transparent
- Date: Thu, 16 Aug 2012 09:23:27 +0000 (UTC)
commit 5c8e225324968b1ae661ba125fa0173f77157ca3
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Thu Aug 16 11:23:02 2012 +0200
Make commander entry appear transparent
plugins/commander/commander/entry.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/plugins/commander/commander/entry.py b/plugins/commander/commander/entry.py
index a458696..a579786 100644
--- a/plugins/commander/commander/entry.py
+++ b/plugins/commander/commander/entry.py
@@ -74,6 +74,13 @@ class Entry(Gtk.EventBox):
GtkEntry#gedit-commander-entry {
gtk-key-bindings: terminal-like-bindings;
+
+ /* Override background to anything. This is weird, but doing this we can
+ then in code use widget.override_background to set the color dynamically
+ to the same color as the gedit view */
+ background: transparent;
+ border-width: 0;
+ box-shadow: 0 0 transparent;
}
""")
@@ -153,7 +160,6 @@ GtkEntry#gedit-commander-entry {
font = context.get_font(Gtk.StateFlags.NORMAL)
widget.override_color(Gtk.StateFlags.NORMAL, self.get_foreground_color())
- widget.override_background_color(Gtk.StateFlags.NORMAL, self.get_background_color())
widget.override_font(self.get_font())
else:
if self._entry:
@@ -189,11 +195,6 @@ GtkEntry#gedit-commander-entry {
win = self._view.get_window(Gtk.TextWindowType.BOTTOM)
- # Set same color as gutter, i.e. bg color of the view
- context = self._view.get_style_context()
- color = context.get_background_color(Gtk.StateFlags.NORMAL)
- win.set_background_rgba(color)
-
self.show()
self.set_size_request(win.get_width(), -1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]