From 85bee4a7d22ea56a67d6c69ffea4bbe5d519176d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 16 Jun 2017 15:36:01 +0200 Subject: [PATCH] Rename completion background settings to .odd/.even --- qutebrowser/completion/completionwidget.py | 4 ++-- qutebrowser/config/configdata.yml | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/qutebrowser/completion/completionwidget.py b/qutebrowser/completion/completionwidget.py index f19cb8500..f4d095ce9 100644 --- a/qutebrowser/completion/completionwidget.py +++ b/qutebrowser/completion/completionwidget.py @@ -58,8 +58,8 @@ class CompletionView(QTreeView): STYLESHEET = """ QTreeView { font: {{ conf.fonts.completion.entry }}; - background-color: {{ conf.colors.completion.bg }}; - alternate-background-color: {{ conf.colors.completion.alternate_bg }}; + background-color: {{ conf.colors.completion.even.bg }}; + alternate-background-color: {{ conf.colors.completion.odd.bg }}; outline: 0; border: 0px; } diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index c766c08ad..93a5354b0 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1272,15 +1272,15 @@ colors.completion.fg: type: QtColor desc: Text color of the completion widget. -colors.completion.bg: - default: '#333333' - type: QssColor - desc: Background color of the completion widget. - -colors.completion.alternate_bg: +colors.completion.odd.bg: default: '#444444' type: QssColor - desc: Alternating background color of the completion widget. + desc: Background color of the completion widget for odd rows. + +colors.completion.even.bg: + default: '#333333' + type: QssColor + desc: Background color of the completion widget for even rows. colors.completion.category.fg: default: white