mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- timerlist: add separationline to items
(cherry picked from commit 2709af5f8a300e0cabbb1ff2d662ee12b7035d43) Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -677,7 +677,7 @@ void CTimerList::updateEvents(void)
|
||||
|
||||
header_height = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
||||
font_height = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
||||
item_height = 2*font_height;
|
||||
item_height = 2*font_height + 1; // + 1 for separationline
|
||||
footer_height = header_height;
|
||||
|
||||
width = frameBuffer->getScreenWidth()/100 * 90;
|
||||
@@ -1160,6 +1160,8 @@ void CTimerList::paintItem(int pos)
|
||||
if (i_radius)
|
||||
frameBuffer->paintBoxRel(x, ypos, real_width, item_height, COL_MENUCONTENT_PLUS_0);
|
||||
frameBuffer->paintBoxRel(x, ypos, real_width, item_height, bgcolor, i_radius);
|
||||
// separationline
|
||||
frameBuffer->paintHLineRel(x, real_width, ypos + item_height - 1, (pos + 1 == listmaxshow) ? bgcolor : COL_MENUCONTENTDARK_PLUS_0);
|
||||
//shadow
|
||||
frameBuffer->paintBoxRel(x + width, ypos + OFFSET_SHADOW, OFFSET_SHADOW, item_height, COL_SHADOW_PLUS_0);
|
||||
|
||||
|
Reference in New Issue
Block a user