Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
800a17e4
Commit
800a17e4
authored
Jul 24, 2015
by
Fabio Bas
Browse files
Force black text color on deck list; fix #1289
parent
0d5e1696
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/decklistmodel.cpp
View file @
800a17e4
...
...
@@ -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
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment