Skip to content

Commit

Permalink
DarkTheme: Fix separator color for TagView (#11511)
Browse files Browse the repository at this point in the history
  • Loading branch information
xboxones1 authored Nov 30, 2024
1 parent bf856d2 commit 1d581ee
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 @@ -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"

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 1d581ee

Please sign in to comment.