Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
UI|Client: Further adjusted shadow of ProgressWidget text
Better results could be produced using a shadow shader.
  • Loading branch information
skyjake committed Nov 22, 2013
1 parent d3c33e1 commit 73d1db2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doomsday/client/src/ui/widgets/progresswidget.cpp
Expand Up @@ -219,10 +219,12 @@ void ProgressWidget::glMakeGeometry(DefaultVertexBuf::Builder &verts)
// Shadow behind the text.
Rectanglef textBox = Rectanglef::fromSize(textSize());
ui::applyAlignment(ui::AlignCenter, textBox, layout.text);
int const boxSize = textBox.height() * 4;
Vector2f const off(0, textBox.height() / 4);
verts.makeFlexibleFrame(Rectanglef(off + textBox.midLeft(),
off + textBox.midRight()).expanded(boxSize),
int const boxSize = textBox.height() * 6;
Vector2f const off(0, textBox.height() * .16f);
Vector2f const hoff(textBox.height(), 0);
verts.makeFlexibleFrame(Rectanglef(off + textBox.midLeft() + hoff,
off + textBox.midRight() - hoff)
.expanded(boxSize),
boxSize, Vector4f(shadowColor, shadowColor.w * .75f),
root().atlas().imageRectf(root().borderGlow()));

Expand Down

0 comments on commit 73d1db2

Please sign in to comment.