Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-01-09 20:37:13 +0000
committerStijn Buys <ingar@osirion.org>2012-01-09 20:37:13 +0000
commitab8f46356850fe017478891c525e217bc2e0b3eb (patch)
tree66f2e1dffcef07e38d65f74587dac34bd272033b /src/ui/listitem.cc
parent375bc5e54c6a9712f7f86b613cde49f5f5d41045 (diff)
Added a value attribute to listitems.
Diffstat (limited to 'src/ui/listitem.cc')
-rw-r--r--src/ui/listitem.cc7
1 files changed, 3 insertions, 4 deletions
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<ListView *>(parent()))->selected() == this)) {
- Paint::set_color(palette()->highlight());
-
- } else if (disabled()) {
+ if (disabled()) {
Paint::set_color(palette()->disabled());
+ } else if (((static_cast<ListView *>(parent()))->selected() == this)) {
+ Paint::set_color(palette()->highlight());
} else {
Paint::set_color(palette()->foreground());
}