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 9dfb2e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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());
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());
}
}
}
};
Expand Down

0 comments on commit 9dfb2e0

Please sign in to comment.