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
bd92f18e
Commit
bd92f18e
authored
Jul 26, 2015
by
Zach
Browse files
Merge pull request #1293 from ctrlaltca/fix_1289
Force black text color on deck list
parents
ac4c7455
800a17e4
Changes
1
Show whitespace changes
Inline
Side-by-side
cockatrice/src/decklistmodel.cpp
View file @
bd92f18e
...
@@ -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
();
}
}
}
}
...
...
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