mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
Every card is legal for now. (#6309)
Took 28 minutes Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
648f028a63
commit
cc73a8cc85
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ QVariant DeckListStyleProxy::data(const QModelIndex &index, int role) const
|
||||||
|
|
||||||
if (role == Qt::BackgroundRole) {
|
if (role == Qt::BackgroundRole) {
|
||||||
if (isCard) {
|
if (isCard) {
|
||||||
const bool legal = QIdentityProxyModel::data(index, DeckRoles::IsLegalRole).toBool();
|
const bool legal =
|
||||||
|
true; // TODO: Not implemented yet. QIdentityProxyModel::data(index, DeckRoles::IsLegalRole).toBool();
|
||||||
int base = 255 - (index.row() % 2) * 30;
|
int base = 255 - (index.row() % 2) * 30;
|
||||||
return legal ? QBrush(QColor(base, base, base)) : QBrush(QColor(255, base / 3, base / 3));
|
return legal ? QBrush(QColor(base, base, base)) : QBrush(QColor(255, base / 3, base / 3));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue