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>2011-07-30 22:20:59 +0000
committerStijn Buys <ingar@osirion.org>2011-07-30 22:20:59 +0000
commit483bd5dc4e3ecafee54ff608674eb7e6361622b3 (patch)
tree2bb413e0f67fae1ce076a2c18783c7df568cbb84 /src/ui/listitem.cc
parent9651df184a3fb433411fe233d9e1cfe3a1960c48 (diff)
Added UI tiny font, have ui::Bitmap respect its color settings,
corrected focus jumping to the next visible sibling when hiding widgets, changed ui::ListItem border appereance.
Diffstat (limited to 'src/ui/listitem.cc')
-rw-r--r--src/ui/listitem.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/listitem.cc b/src/ui/listitem.cc
index 5e58560..dfe0c0e 100644
--- a/src/ui/listitem.cc
+++ b/src/ui/listitem.cc
@@ -16,6 +16,8 @@ ListItem::ListItem(ListView *parent, const char * text) : Label(parent, text) {
listitem_info = 0;
listitem_item = 0;
+
+ set_alignment(ui::AlignLeft);
}
ListItem::~ListItem() {
@@ -33,9 +35,11 @@ void ListItem::draw_border()
Paint::set_color(color);
Paint::draw_border(global_location(), size());
} else if ((static_cast<ListView *>(parent()))->selected() == this) {
+ Paint::set_color(palette()->foreground());
+ } else {
Paint::set_color(palette()->border());
- Paint::draw_border(global_location(), size());
}
+ Paint::draw_border(global_location(), size());
}
void ListItem::draw()
@@ -48,7 +52,6 @@ void ListItem::draw()
} else if (disabled()) {
Paint::set_color(palette()->disabled());
-
} else {
Paint::set_color(palette()->foreground());
}