From 599f582c205ce6ba31e02acadca8c3bf6fa222f8 Mon Sep 17 00:00:00 2001 From: Austin Anderson Date: Thu, 11 Jun 2015 08:07:59 -0400 Subject: [PATCH] More specific statusbar styling: resolves #750. --- qutebrowser/mainwindow/statusbar/bar.py | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py index 689ea77bb..fa16c24a4 100644 --- a/qutebrowser/mainwindow/statusbar/bar.py +++ b/qutebrowser/mainwindow/statusbar/bar.py @@ -108,50 +108,58 @@ class StatusBar(QWidget): STYLESHEET = """ QWidget#StatusBar, - QWidget#StatusBar * { + QWidget#StatusBar QLabel, + QWidget#StatusBar QLineEdit { {{ font['statusbar'] }} {{ color['statusbar.bg'] }} {{ color['statusbar.fg'] }} } QWidget#StatusBar[caret_mode="on"], - QWidget#StatusBar[caret_mode="on"] * { + QWidget#StatusBar[caret_mode="on"] QLabel, + QWidget#StatusBar[caret_mode="on"] QLineEdit { {{ color['statusbar.fg.caret'] }} {{ color['statusbar.bg.caret'] }} } QWidget#StatusBar[caret_mode="selection"], - QWidget#StatusBar[caret_mode="selection"] * { + QWidget#StatusBar[caret_mode="selection"] QLabel, + QWidget#StatusBar[caret_mode="selection"] QLineEdit { {{ color['statusbar.fg.caret-selection'] }} {{ color['statusbar.bg.caret-selection'] }} } QWidget#StatusBar[severity="error"], - QWidget#StatusBar[severity="error"] * { + QWidget#StatusBar[severity="error"] QLabel, + QWidget#StatusBar[severity="error"] QLineEdit { {{ color['statusbar.fg.error'] }} {{ color['statusbar.bg.error'] }} } QWidget#StatusBar[severity="warning"], - QWidget#StatusBar[severity="warning"] * { + QWidget#StatusBar[severity="warning"] QLabel, + QWidget#StatusBar[severity="warning"] QLineEdit { {{ color['statusbar.fg.warning'] }} {{ color['statusbar.bg.warning'] }} } QWidget#StatusBar[prompt_active="true"], - QWidget#StatusBar[prompt_active="true"] * { + QWidget#StatusBar[prompt_active="true"] QLabel, + QWidget#StatusBar[prompt_active="true"] QLineEdit { {{ color['statusbar.fg.prompt'] }} {{ color['statusbar.bg.prompt'] }} } QWidget#StatusBar[insert_active="true"], - QWidget#StatusBar[insert_active="true"] * { + QWidget#StatusBar[insert_active="true"] QLabel, + QWidget#StatusBar[insert_active="true"] QLineEdit { {{ color['statusbar.fg.insert'] }} {{ color['statusbar.bg.insert'] }} } QWidget#StatusBar[command_active="true"], - QWidget#StatusBar[command_active="true"] * { + QWidget#StatusBar[command_active="true"] QLabel, + QWidget#StatusBar[command_active="true"] QLineEdit { {{ color['statusbar.fg.command'] }} {{ color['statusbar.bg.command'] }} }