mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Merge pull request #1293 from ctrlaltca/fix_1289
Force black text color on deck list
This commit is contained in:
commit
bd92f18e9d
1 changed files with 6 additions and 0 deletions
|
|
@ -108,6 +108,9 @@ QVariant DeckListModel::data(const QModelIndex &index, int role) const
|
|||
int color = 90 + 60 * node->depth();
|
||||
return QBrush(QColor(color, 255, color));
|
||||
}
|
||||
case Qt::ForegroundRole: {
|
||||
return QBrush(QColor(0 ,0 ,0));
|
||||
}
|
||||
default: return QVariant();
|
||||
}
|
||||
} else {
|
||||
|
|
@ -125,6 +128,9 @@ QVariant DeckListModel::data(const QModelIndex &index, int role) const
|
|||
int color = 255 - (index.row() % 2) * 30;
|
||||
return QBrush(QColor(color, color, color));
|
||||
}
|
||||
case Qt::ForegroundRole: {
|
||||
return QBrush(QColor(0 ,0 ,0));
|
||||
}
|
||||
default: return QVariant();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue