From 8ccf8120c93d2edb4d5e3bcfc9498284383764f7 Mon Sep 17 00:00:00 2001 From: nirvn Date: Thu, 27 Dec 2018 11:24:57 +0700 Subject: [PATCH] Blend of Gray theme fixes: - white background on white text options/project/etc. panel list widget - unwanted light gray tool button's menu button --- resources/themes/Blend of Gray/style.qss | 37 ++++++++++++++---------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/resources/themes/Blend of Gray/style.qss b/resources/themes/Blend of Gray/style.qss index c1a0f614f0d1..4b932728ec0b 100644 --- a/resources/themes/Blend of Gray/style.qss +++ b/resources/themes/Blend of Gray/style.qss @@ -51,23 +51,21 @@ QAbstractSpinBox { border-radius:4px; background-color: @darkgradient; color:@itembackground; - } +} - QAbstractSpinBox::up-button { +QAbstractSpinBox::up-button { subcontrol-origin: border; - subcontrol-position: top right; - - width: 16px; + subcontrol-position: top right; + width: 16px; image: url(@theme_path/icons/arrow-up.svg); - } - - QAbstractSpinBox::down-button { - subcontrol-origin: border; - subcontrol-position: bottom right; +} - width: 16px; +QAbstractSpinBox::down-button { + subcontrol-origin: border; + subcontrol-position: bottom right; + width: 16px; image: url(@theme_path/icons/arrow-down.svg); - } +} /* ==================================================================================== */ @@ -149,7 +147,7 @@ QToolButton::menu-button { border-width: 1px; border-color: none; border-radius: 4px; - background: none; + background:@itemdarkbackground; } QToolButton::hover, QToolButton::menu-button::hover { @@ -157,7 +155,7 @@ QToolButton::hover, QToolButton::menu-button::hover border-color: #1e1e1e; border-style: solid; border-radius: 4px; - background-color:@itembackground; + background-color: none; } QToolButton:checked { @@ -184,7 +182,7 @@ QComboBox { border-style: solid; border: 1px solid #1e1e1e; border-radius:4px; - padding: 3px 3px 3px 3px; + padding: 3px; } @@ -635,3 +633,12 @@ QgsMessageBar QLabel, QgsMessageBar QTextEdit, QMessageBar QToolButton { QgsPropertyOverrideButton { padding: 0px; } + +QListWidget#mOptionsListWidget { + background-color: @itemdarkbackground; + color: @itembackground; +} + +QListWidget#mOptionsListWidget::item { + padding: 3px; +}