Commit 800a17e4 authored by Fabio Bas's avatar Fabio Bas
Browse files

Force black text color on deck list; fix #1289

parent 0d5e1696
......@@ -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();
}
}
......
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