Skip to content

Commit

Permalink
UI|Client: Adjusted shadow of ProgressWidget text
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Nov 21, 2013
1 parent 3a9bb66 commit 1e73977
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/client/src/ui/widgets/progresswidget.cpp
Expand Up @@ -220,7 +220,9 @@ void ProgressWidget::glMakeGeometry(DefaultVertexBuf::Builder &verts)
Rectanglef textBox = Rectanglef::fromSize(textSize());
ui::applyAlignment(ui::AlignCenter, textBox, layout.text);
int const boxSize = textBox.height() * 4;
verts.makeFlexibleFrame(Rectanglef(textBox.midLeft(), textBox.midRight()).expanded(boxSize),
Vector2f const off(0, textBox.height() / 4);
verts.makeFlexibleFrame(Rectanglef(off + textBox.midLeft(),
off + textBox.midRight()).expanded(boxSize),
boxSize, Vector4f(shadowColor, shadowColor.w * .75f),
root().atlas().imageRectf(root().borderGlow()));

Expand Down

0 comments on commit 1e73977

Please sign in to comment.