mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
timerlist: add separationline to items
Origin commit data
------------------
Commit: 2709af5f8a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-24 (Sat, 24 Jun 2017)
Origin message was:
------------------
- timerlist: add separationline to items
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