From ab8f46356850fe017478891c525e217bc2e0b3eb Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 9 Jan 2012 20:37:13 +0000 Subject: Added a value attribute to listitems. --- src/ui/listitem.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/ui/listitem.cc') diff --git a/src/ui/listitem.cc b/src/ui/listitem.cc index dfe0c0e..a5d033a 100644 --- a/src/ui/listitem.cc +++ b/src/ui/listitem.cc @@ -47,11 +47,10 @@ void ListItem::draw() if (!text().size()) return; - if (has_mouse_focus() || ((static_cast(parent()))->selected() == this)) { - Paint::set_color(palette()->highlight()); - - } else if (disabled()) { + if (disabled()) { Paint::set_color(palette()->disabled()); + } else if (((static_cast(parent()))->selected() == this)) { + Paint::set_color(palette()->highlight()); } else { Paint::set_color(palette()->foreground()); } -- cgit v1.2.3