From f6cd53e9327316b68520ddd0e4e607b22ac5fbd1 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Tue, 11 Dec 2018 15:24:25 -0600 Subject: Change color of separator text based on the configured color of the separator --- src/modlist.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/modlist.cpp b/src/modlist.cpp index dfe2efd3..ee7db894 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -378,6 +378,11 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const } } return QVariant(); + } else if (role == Qt::TextColorRole) { + if (modInfo->hasFlag(ModInfo::FLAG_SEPARATOR) && modInfo->getColor().isValid()) { + return Settings::getIdealTextColor(modInfo->getColor()); + } + return QVariant(); } else if (role == Qt::ForegroundRole) { if (column == COL_NAME) { int highlight = modInfo->getHighlight(); -- cgit v1.3.1