mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CInfoViewer: refine arrangement of epg title
this reduces some flicker or fade effects nearly of numberbox
This commit is contained in:
@@ -400,9 +400,10 @@ void CInfoViewer::paintBackground(int col_NumBox)
|
|||||||
paintBody();
|
paintBody();
|
||||||
|
|
||||||
// number box
|
// number box
|
||||||
if (numbox == NULL) //TODO: move into an own member, paintNumBox() or so...
|
if (numbox == NULL){ //TODO: move into an own member, paintNumBox() or so...
|
||||||
numbox = new CComponentsShapeSquare(BoxStartX, BoxStartY, ChanWidth, ChanHeight, NULL, CC_SHADOW_ON);
|
numbox = new CComponentsShapeSquare(BoxStartX, BoxStartY, ChanWidth, ChanHeight);
|
||||||
else
|
numbox->enableShadow(CC_SHADOW_ON, 6, true);
|
||||||
|
}else
|
||||||
numbox->setDimensionsAll(BoxStartX, BoxStartY, ChanWidth, ChanHeight);
|
numbox->setDimensionsAll(BoxStartX, BoxStartY, ChanWidth, ChanHeight);
|
||||||
|
|
||||||
numbox->setColorBody(g_settings.theme.infobar_gradient_top ? COL_MENUHEAD_PLUS_0 : col_NumBox);
|
numbox->setColorBody(g_settings.theme.infobar_gradient_top ? COL_MENUHEAD_PLUS_0 : col_NumBox);
|
||||||
@@ -413,11 +414,13 @@ void CInfoViewer::paintBackground(int col_NumBox)
|
|||||||
|
|
||||||
void CInfoViewer::paintHead()
|
void CInfoViewer::paintHead()
|
||||||
{
|
{
|
||||||
|
int head_x = BoxStartX+ChanWidth+5;
|
||||||
|
int head_w = BoxEndX-head_x;
|
||||||
if (header == NULL){
|
if (header == NULL){
|
||||||
header = new CComponentsShapeSquare(ChanInfoX, ChanNameY, BoxEndX-ChanInfoX, time_height, NULL, CC_SHADOW_RIGHT);
|
header = new CComponentsShapeSquare(head_x, ChanNameY, head_w, time_height, NULL, CC_SHADOW_RIGHT);
|
||||||
header->setCorner(RADIUS_LARGE, CORNER_TOP_RIGHT);
|
header->setCorner(RADIUS_LARGE, CORNER_TOP_RIGHT);
|
||||||
}else
|
}else
|
||||||
header->setDimensionsAll(ChanInfoX, ChanNameY, BoxEndX-ChanInfoX, time_height);
|
header->setDimensionsAll(head_x, ChanNameY, head_w, time_height);
|
||||||
|
|
||||||
header->setColorBody(g_settings.theme.infobar_gradient_top ? COL_MENUHEAD_PLUS_0 : COL_INFOBAR_PLUS_0);
|
header->setColorBody(g_settings.theme.infobar_gradient_top ? COL_MENUHEAD_PLUS_0 : COL_INFOBAR_PLUS_0);
|
||||||
header->enableColBodyGradient(g_settings.theme.infobar_gradient_top, COL_INFOBAR_PLUS_0, g_settings.theme.infobar_gradient_top_direction);
|
header->enableColBodyGradient(g_settings.theme.infobar_gradient_top, COL_INFOBAR_PLUS_0, g_settings.theme.infobar_gradient_top_direction);
|
||||||
|
Reference in New Issue
Block a user