From 57c4285dbc9d2ba6e8a7e690a899dc77974bdf58 Mon Sep 17 00:00:00 2001 From: sMailund Date: Sat, 14 Oct 2017 10:29:34 +0200 Subject: [PATCH] configure colorflags for passthrough mode --- qutebrowser/mainwindow/statusbar/bar.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py index e8aacc935..e7a6256a2 100644 --- a/qutebrowser/mainwindow/statusbar/bar.py +++ b/qutebrowser/mainwindow/statusbar/bar.py @@ -43,6 +43,7 @@ class ColorFlags: command: If we're currently in command mode. mode: The current caret mode (CaretMode.off/.on/.selection). private: Whether this window is in private browsing mode. + passthrough: If we're currently in passthrough-mode """ CaretMode = usertypes.enum('CaretMode', ['off', 'on', 'selection']) @@ -51,6 +52,7 @@ class ColorFlags: command = attr.ib(False) caret = attr.ib(CaretMode.off) private = attr.ib(False) + passthrough = attr.ib(False) def to_stringlist(self): """Get a string list of set flags used in the stylesheet. @@ -66,6 +68,8 @@ class ColorFlags: strings.append('command') if self.private: strings.append('private') + if self.passthrough: + strings.append('passthrough') if self.private and self.command: strings.append('private-command') @@ -88,6 +92,7 @@ def _generate_stylesheet(): ('prompt', 'prompts'), ('insert', 'statusbar.insert'), ('command', 'statusbar.command'), + ('passthrough', 'statusbar.passthrough'), ('private-command', 'statusbar.command.private'), ] stylesheet = """