qt dark style: bandaid for dropdown item heights

see #6281
This commit is contained in:
SomberNight 2020-06-28 03:46:20 +02:00
parent 8d0c03caff
commit 93a4969fba
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9

View File

@ -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)