Skip to content

Commit

Permalink
fix fg/bdcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
aichingm authored and gsemet committed Aug 31, 2018
1 parent e669b7e commit 03c486a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions guake/guake_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,8 @@ def set_bgcolor(self, bgcolor):
bgcolor = self._apply_transparency_to_color(bgcolor)
log.debug("setting background color to: %r", bgcolor)
page_num = self.notebook.get_current_page()
terminal = self.notebook.get_nth_page(page_num).terminal
terminal.set_color_background(bgcolor)


# self.notebook.get_current_terminal().set_color_background(bgcolor)
for terminal in self.notebook.get_nth_page(page_num).iter_terminals():
terminal.set_color_background(bgcolor)

def set_fgcolor(self, fgcolor):
if isinstance(fgcolor, str):
Expand All @@ -590,10 +587,8 @@ def set_fgcolor(self, fgcolor):
raise TypeError("color should be Gdk.RGBA, is: {!r}".format(fgcolor))
log.debug("setting background color to: %r", fgcolor)
page_num = self.notebook.get_current_page()
terminal = self.notebook.get_nth_page(page_num).terminal
# TODO this should be fgcolor right?
terminal.set_color_foreground(bgcolor)
# self.notebook.get_current_terminal().set_color_foreground(fgcolor)
for terminal in self.notebook.get_nth_page(page_num).iter_terminals():
terminal.set_color_foreground(fgcolor)

def execute_command(self, command, tab=None):
"""Execute the `command' in the `tab'. If tab is None, the
Expand Down

0 comments on commit 03c486a

Please sign in to comment.