Commit bd92f18e authored by Zach's avatar Zach
Browse files

Merge pull request #1293 from ctrlaltca/fix_1289

Force black text color on deck list
parents ac4c7455 800a17e4
...@@ -108,6 +108,9 @@ QVariant DeckListModel::data(const QModelIndex &index, int role) const ...@@ -108,6 +108,9 @@ QVariant DeckListModel::data(const QModelIndex &index, int role) const
int color = 90 + 60 * node->depth(); int color = 90 + 60 * node->depth();
return QBrush(QColor(color, 255, color)); return QBrush(QColor(color, 255, color));
} }
case Qt::ForegroundRole: {
return QBrush(QColor(0 ,0 ,0));
}
default: return QVariant(); default: return QVariant();
} }
} else { } else {
...@@ -125,6 +128,9 @@ QVariant DeckListModel::data(const QModelIndex &index, int role) const ...@@ -125,6 +128,9 @@ QVariant DeckListModel::data(const QModelIndex &index, int role) const
int color = 255 - (index.row() % 2) * 30; int color = 255 - (index.row() % 2) * 30;
return QBrush(QColor(color, color, color)); return QBrush(QColor(color, color, color));
} }
case Qt::ForegroundRole: {
return QBrush(QColor(0 ,0 ,0));
}
default: return QVariant(); default: return QVariant();
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment