diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-12-11 15:24:25 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-12-11 15:24:25 -0600 |
| commit | f6cd53e9327316b68520ddd0e4e607b22ac5fbd1 (patch) | |
| tree | f289ae4165ae6b553960be31d6597337e8d3baf7 /src | |
| parent | 5335188e635c8c1b1cb2529e2a921d15c7d02058 (diff) | |
Change color of separator text based on the configured color of the separator
Diffstat (limited to 'src')
| -rw-r--r-- | src/modlist.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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();
|
