diff options
Diffstat (limited to 'src/ui/listitem.cc')
-rw-r--r-- | src/ui/listitem.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/listitem.cc b/src/ui/listitem.cc index 8f445f1..c5cee32 100644 --- a/src/ui/listitem.cc +++ b/src/ui/listitem.cc @@ -43,7 +43,9 @@ void ListItem::draw() if (!text().size()) return; - if ( has_mouse_focus() || ((static_cast<ListView *>(parent()))->selected() == this)) { + if (disabled()) { + Paint::set_color(palette()->disabled()); + } else if (has_mouse_focus() || ((static_cast<ListView *>(parent()))->selected() == this)) { Paint::set_color(palette()->highlight()); } else { Paint::set_color(palette()->foreground()); |