Skip to content

Commit b85675f

Browse files
xboxones1droidmonkey
authored andcommitted
DarkTheme: Fix separator color for TagView (#11511)
1 parent e210faa commit b85675f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/gui/tag/TagView.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "TagModel.h"
2121
#include "core/Database.h"
2222
#include "core/Metadata.h"
23+
#include "gui/Application.h"
2324
#include "gui/Icons.h"
2425
#include "gui/MessageBox.h"
2526

@@ -39,7 +40,11 @@ class TagItemDelegate : public QStyledItemDelegate
3940
if (index.data(Qt::UserRole + 1).toBool()) {
4041
QRect bounds = option.rect;
4142
bounds.setY(bounds.bottom());
42-
painter->fillRect(bounds, option.palette.mid());
43+
if (kpxcApp->isDarkTheme()) {
44+
painter->fillRect(bounds, option.palette.mid().color().lighter(185));
45+
} else {
46+
painter->fillRect(bounds, option.palette.mid());
47+
}
4348
}
4449
}
4550
};

0 commit comments

Comments
 (0)