From f9f9b29b29d8f6e3d0dc5c540bf446d0cbeb2c18 Mon Sep 17 00:00:00 2001 From: skyjake Date: Fri, 13 Sep 2013 22:07:00 +0300 Subject: [PATCH] Fixed|PopupMenuWidget: Image color should be the same as text color --- doomsday/client/src/ui/widgets/popupmenuwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doomsday/client/src/ui/widgets/popupmenuwidget.cpp b/doomsday/client/src/ui/widgets/popupmenuwidget.cpp index da0dabb399..e06d91422b 100644 --- a/doomsday/client/src/ui/widgets/popupmenuwidget.cpp +++ b/doomsday/client/src/ui/widgets/popupmenuwidget.cpp @@ -118,7 +118,7 @@ DENG2_OBSERVES(ChildWidgetOrganizer, WidgetUpdate) void buttonStateChanged(ButtonWidget &button, ButtonWidget::State state) { - if(state == ButtonWidget::Hover) + if(state != ButtonWidget::Up) { button.setImageColor(style().colors().colorf("inverted.text")); } @@ -243,6 +243,7 @@ void PopupMenuWidget::panelClosing() if(d->hover) { d->hover->setTextColor("text"); + d->hover->setImageColor(style().colors().colorf("text")); d->hover = 0; requestGeometry(); }