Skip to content

Commit

Permalink
DarkTheme: Fix separator color for TagView
Browse files Browse the repository at this point in the history
  • Loading branch information
xboxones1 committed Nov 29, 2024
1 parent bf856d2 commit 3d3fe17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/tag/TagView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "TagView.h"

#include "TagModel.h"
#include "gui/Application.h"
#include "core/Database.h"
#include "core/Metadata.h"
#include "gui/Icons.h"
Expand All @@ -39,7 +40,11 @@ class TagItemDelegate : public QStyledItemDelegate
if (index.data(Qt::UserRole + 1).toBool()) {
QRect bounds = option.rect;
bounds.setY(bounds.bottom());
if (kpxcApp->isDarkTheme()) {
painter->fillRect(bounds, option.palette.mid().color().lighter(185));
} else {
painter->fillRect(bounds, option.palette.mid());
}
}
}
};
Expand Down

0 comments on commit 3d3fe17

Please sign in to comment.