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
5c526f6c
Commit
5c526f6c
authored
Jun 19, 2015
by
Matt Lowe
Browse files
Solid counters
Removed gradient to give counters a more solid look
parent
85334246
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/abstractgraphicsitem.cpp
View file @
5c526f6c
...
@@ -17,15 +17,7 @@ void AbstractGraphicsItem::paintNumberEllipse(int number, int fontSize, const QC
...
@@ -17,15 +17,7 @@ void AbstractGraphicsItem::paintNumberEllipse(int number, int fontSize, const QC
w
=
h
;
w
=
h
;
painter
->
setPen
(
QColor
(
255
,
255
,
255
,
0
));
painter
->
setPen
(
QColor
(
255
,
255
,
255
,
0
));
QRadialGradient
grad
(
QPointF
(
0.5
,
0.5
),
0.5
);
painter
->
setBrush
(
QBrush
(
QColor
(
color
)));
grad
.
setCoordinateMode
(
QGradient
::
ObjectBoundingMode
);
QColor
color1
(
color
),
color2
(
color
);
color1
.
setAlpha
(
255
);
color2
.
setAlpha
(
0
);
grad
.
setColorAt
(
0
,
color1
);
grad
.
setColorAt
(
0.8
,
color1
);
grad
.
setColorAt
(
1
,
color2
);
painter
->
setBrush
(
QBrush
(
grad
));
QRectF
textRect
;
QRectF
textRect
;
if
(
position
==
-
1
)
if
(
position
==
-
1
)
...
...
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