Skip to content

Commit

Permalink
Client|PopupMenuWidget: Use accent color for highlighting pressed item
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 20, 2013
1 parent b6ac925 commit ab470d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/client/src/ui/widgets/popupmenuwidget.cpp
Expand Up @@ -121,7 +121,9 @@ void PopupMenuWidget::glMakeGeometry(DefaultVertexBuf::Builder &verts)
if(d->hover)
{
verts.makeQuad(d->highlightRect(),
style().colors().colorf("inverted.background"),
d->hover->state() == ButtonWidget::Hover?
style().colors().colorf("inverted.background") :
style().colors().colorf("accent"),
root().atlas().imageRectf(root().solidWhitePixel()).middle());
}
}

0 comments on commit ab470d5

Please sign in to comment.