From 20f4677f808775230583c596c9f3532c99e1d14a Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Sun, 6 Aug 2023 12:24:03 -0700 Subject: [PATCH] qt: Fix dark themes not showing alternating row icons with Qt 6.5.2 (#6862) --- dist/qt_themes/qdarkstyle/style.qss | 5 +++++ dist/qt_themes/qdarkstyle_midnight_blue/style.qss | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dist/qt_themes/qdarkstyle/style.qss b/dist/qt_themes/qdarkstyle/style.qss index 7d6df72b6..238a41182 100644 --- a/dist/qt_themes/qdarkstyle/style.qss +++ b/dist/qt_themes/qdarkstyle/style.qss @@ -298,6 +298,11 @@ QAbstractItemView:read-only { alternate-background-color: #232629; } +/* Workaround for https://bugreports.qt.io/browse/QTBUG-115529 */ +QAbstractItemView:item { + border: 0px; +} + QWidget:focus { border: 1px solid #3daee9; } diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/style.qss b/dist/qt_themes/qdarkstyle_midnight_blue/style.qss index c200819c5..12d05d7bf 100644 --- a/dist/qt_themes/qdarkstyle_midnight_blue/style.qss +++ b/dist/qt_themes/qdarkstyle_midnight_blue/style.qss @@ -481,6 +481,11 @@ QAbstractItemView QLineEdit { padding: 2px; } +/* Workaround for https://bugreports.qt.io/browse/QTBUG-115529 */ +QAbstractItemView:item { + border: 0px; +} + /* QAbstractScrollArea ---------------------------------------------------- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea