Fix the palette for inactive terminals after Prefs window
This commit is contained in:
parent
e782204f9f
commit
edee76f78e
|
@ -677,8 +677,12 @@ class Terminal(gtk.VBox):
|
||||||
getattr(newcolor_inactive, bit) * factor)
|
getattr(newcolor_inactive, bit) * factor)
|
||||||
self.palette_active.append(newcolor)
|
self.palette_active.append(newcolor)
|
||||||
self.palette_inactive.append(newcolor_inactive)
|
self.palette_inactive.append(newcolor_inactive)
|
||||||
|
if self.terminator.last_focused_term == self:
|
||||||
self.vte.set_colors(self.fgcolor_active, self.bgcolor,
|
self.vte.set_colors(self.fgcolor_active, self.bgcolor,
|
||||||
self.palette_active)
|
self.palette_active)
|
||||||
|
else:
|
||||||
|
self.vte.set_colors(self.fgcolor_inactive, self.bgcolor,
|
||||||
|
self.palette_inactive)
|
||||||
self.set_cursor_color()
|
self.set_cursor_color()
|
||||||
if hasattr(self.vte, 'set_cursor_shape'):
|
if hasattr(self.vte, 'set_cursor_shape'):
|
||||||
self.vte.set_cursor_shape(getattr(vte, 'CURSOR_SHAPE_' +
|
self.vte.set_cursor_shape(getattr(vte, 'CURSOR_SHAPE_' +
|
||||||
|
|
|
@ -25,6 +25,7 @@ class Terminator(Borg):
|
||||||
groups = None
|
groups = None
|
||||||
config = None
|
config = None
|
||||||
keybindings = None
|
keybindings = None
|
||||||
|
last_focused_term = None
|
||||||
|
|
||||||
origcwd = None
|
origcwd = None
|
||||||
dbus_path = None
|
dbus_path = None
|
||||||
|
|
Loading…
Reference in New Issue