DarkTheme: Fix separator color for TagView (#11511)

This commit is contained in:
xboxones1 2024-12-01 04:59:47 +09:00 committed by GitHub
parent bf856d278d
commit 1d581ee027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 @@ public:
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());
}
}
}
};