From b492615fb68e5c97fce87bcc946e92f115cfc3a2 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 30 Jul 2011 13:36:45 +0000 Subject: Added support for tiled ui materials, changed default widget backgrounds to use ui materials. --- src/ui/listitem.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ui/listitem.cc') diff --git a/src/ui/listitem.cc b/src/ui/listitem.cc index c5cee32..5e58560 100644 --- a/src/ui/listitem.cc +++ b/src/ui/listitem.cc @@ -43,10 +43,12 @@ void ListItem::draw() if (!text().size()) return; - if (disabled()) { - Paint::set_color(palette()->disabled()); - } else if (has_mouse_focus() || ((static_cast(parent()))->selected() == this)) { + if (has_mouse_focus() || ((static_cast(parent()))->selected() == this)) { Paint::set_color(palette()->highlight()); + + } else if (disabled()) { + Paint::set_color(palette()->disabled()); + } else { Paint::set_color(palette()->foreground()); } -- cgit v1.2.3