From ab470d51c5e52c419fb188302f252d104d269d3d Mon Sep 17 00:00:00 2001 From: skyjake Date: Thu, 20 Jun 2013 16:01:09 +0300 Subject: [PATCH] Client|PopupMenuWidget: Use accent color for highlighting pressed item --- doomsday/client/src/ui/widgets/popupmenuwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doomsday/client/src/ui/widgets/popupmenuwidget.cpp b/doomsday/client/src/ui/widgets/popupmenuwidget.cpp index 5d33630939..58c86f10bb 100644 --- a/doomsday/client/src/ui/widgets/popupmenuwidget.cpp +++ b/doomsday/client/src/ui/widgets/popupmenuwidget.cpp @@ -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()); } }