From 1d581ee027edc02bbdd0b1cfa76f1eac3ec18efe Mon Sep 17 00:00:00 2001 From: xboxones1 <91512529+xboxones1@users.noreply.github.com> Date: Sun, 1 Dec 2024 04:59:47 +0900 Subject: [PATCH] DarkTheme: Fix separator color for TagView (#11511) --- src/gui/tag/TagView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/tag/TagView.cpp b/src/gui/tag/TagView.cpp index 8afdac44ab..0330612920 100644 --- a/src/gui/tag/TagView.cpp +++ b/src/gui/tag/TagView.cpp @@ -20,6 +20,7 @@ #include "TagModel.h" #include "core/Database.h" #include "core/Metadata.h" +#include "gui/Application.h" #include "gui/Icons.h" #include "gui/MessageBox.h" @@ -39,7 +40,11 @@ class TagItemDelegate : public QStyledItemDelegate if (index.data(Qt::UserRole + 1).toBool()) { QRect bounds = option.rect; bounds.setY(bounds.bottom()); - painter->fillRect(bounds, option.palette.mid()); + if (kpxcApp->isDarkTheme()) { + painter->fillRect(bounds, option.palette.mid().color().lighter(185)); + } else { + painter->fillRect(bounds, option.palette.mid()); + } } } };