diff options
Diffstat (limited to 'src/ui/listitem.cc')
-rw-r--r-- | src/ui/listitem.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/listitem.cc b/src/ui/listitem.cc index 601d5a8..ff9ad18 100644 --- a/src/ui/listitem.cc +++ b/src/ui/listitem.cc @@ -30,11 +30,11 @@ void ListItem::draw_border() if (t > 0.5) t = 1 - t; color.a = 0.5f + t; - paint::color(color); - paint::border(global_location(), size()); + Paint::set_color(color); + Paint::draw_border(global_location(), size()); } else if ((static_cast<ListView *>(parent()))->selected() == this) { - paint::color(palette()->border()); - paint::border(global_location(), size()); + Paint::set_color(palette()->border()); + Paint::draw_border(global_location(), size()); } } @@ -44,11 +44,11 @@ void ListItem::draw() return; if ( has_mouse_focus() || ((static_cast<ListView *>(parent()))->selected() == this)) { - paint::color(palette()->highlight()); + Paint::set_color(palette()->highlight()); } else { - paint::color(palette()->foreground()); + Paint::set_color(palette()->foreground()); } - paint::label(global_location(), size(), font(), text(), alignment()); + Paint::draw_label(global_location(), size(), font(), text(), alignment()); } bool ListItem::on_keypress(const int key, const unsigned int modifier) @@ -64,4 +64,4 @@ bool ListItem::on_keypress(const int key, const unsigned int modifier) return false; } -} // namespace ui
\ No newline at end of file +} // namespace ui |