diff options
Diffstat (limited to 'src/ui/listitem.cc')
-rw-r--r-- | src/ui/listitem.cc | 8 |
1 files changed, 5 insertions, 3 deletions
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<ListView *>(parent()))->selected() == this)) { + if (has_mouse_focus() || ((static_cast<ListView *>(parent()))->selected() == this)) { Paint::set_color(palette()->highlight()); + + } else if (disabled()) { + Paint::set_color(palette()->disabled()); + } else { Paint::set_color(palette()->foreground()); } |