From 229733f1b03079dd2c1ad6c28a7d4fe518ba97e7 Mon Sep 17 00:00:00 2001 From: Austin Anderson Date: Mon, 11 May 2015 22:46:26 -0400 Subject: [PATCH] Properly distinguish between statusbar modes when styling line input. --- qutebrowser/mainwindow/statusbar/bar.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py index 53c991c86..aca145f6a 100644 --- a/qutebrowser/mainwindow/statusbar/bar.py +++ b/qutebrowser/mainwindow/statusbar/bar.py @@ -107,7 +107,7 @@ class StatusBar(QWidget): } QWidget#StatusBar QLineEdit { - {{ color['statusbar.fg.command'] }} + {{ color['statusbar.fg'] }} } QWidget#StatusBar[severity="error"] { @@ -134,6 +134,10 @@ class StatusBar(QWidget): {{ color['statusbar.fg.prompt'] }} } + QWidget#StatusBar[prompt_active="true"] QLineEdit { + {{ color['statusbar.fg.prompt'] }} + } + QWidget#StatusBar[insert_active="true"] { {{ color['statusbar.bg.insert'] }} } @@ -142,12 +146,16 @@ class StatusBar(QWidget): {{ color['statusbar.fg.insert'] }} } + QWidget#StatusBar[command_active="true"] { + {{ color['statusbar.bg.command'] }} + } + QWidget#StatusBar[command_active="true"] QLabel { {{ color['statusbar.fg.command'] }} } - QWidget#StatusBar[command_active="true"] { - {{ color['statusbar.bg.command'] }} + QWidget#StatusBar[command_active="true"] QLineEdit { + {{ color['statusbar.fg.command'] }} } QLabel, QLineEdit {