From 93a4969fba90ef524caf4ae400c7a3dfb41e59f4 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 28 Jun 2020 03:46:20 +0200 Subject: [PATCH] qt dark style: bandaid for dropdown item heights see #6281 --- electrum/gui/qt/stylesheet_patcher.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/electrum/gui/qt/stylesheet_patcher.py b/electrum/gui/qt/stylesheet_patcher.py index 35a085421..2ce5fc162 100644 --- a/electrum/gui/qt/stylesheet_patcher.py +++ b/electrum/gui/qt/stylesheet_patcher.py @@ -22,5 +22,12 @@ def patch_qt_stylesheet(use_dark_theme: bool) -> None: padding: 0px; show-decoration-selected: 1; } + /* Checked item in dropdowns have way too much height... + see #6281 and https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/200 + */ + QComboBox::item:checked { + font-weight: bold; + max-height: 30px; + } ''' app.setStyleSheet(style_sheet)