From d6c85e14cc1a845b34ded7c9262b4b7787ec8e09 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 19 Oct 2016 13:21:58 +0200 Subject: [PATCH] - listbox: use getItemColors function --- src/gui/widget/listbox.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/gui/widget/listbox.cpp b/src/gui/widget/listbox.cpp index acb4935da..5139865b3 100644 --- a/src/gui/widget/listbox.cpp +++ b/src/gui/widget/listbox.cpp @@ -127,16 +127,7 @@ void CListBox::paintItem(unsigned int /*itemNr*/, int paintNr, bool pselected) fb_pixel_t color; fb_pixel_t bgcolor; - if (pselected) - { - color = COL_MENUCONTENTSELECTED_TEXT; - bgcolor = COL_MENUCONTENTSELECTED_PLUS_0; - } - else - { - color = COL_MENUCONTENT_TEXT; - bgcolor = COL_MENUCONTENT_PLUS_0; - } + getItemColors(color, bgcolor, pselected); frameBuffer->paintBoxRel(x,ypos, width- 15, getItemHeight(), bgcolor); g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->RenderString(x + 10, ypos+ fheight, width-20, "demo", color);