diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index c56d34cd4..cdcf3a356 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -400,9 +400,10 @@ void CInfoViewer::paintBackground(int col_NumBox) paintBody(); // number box - if (numbox == NULL) //TODO: move into an own member, paintNumBox() or so... - numbox = new CComponentsShapeSquare(BoxStartX, BoxStartY, ChanWidth, ChanHeight, NULL, CC_SHADOW_ON); - else + if (numbox == NULL){ //TODO: move into an own member, paintNumBox() or so... + numbox = new CComponentsShapeSquare(BoxStartX, BoxStartY, ChanWidth, ChanHeight); + numbox->enableShadow(CC_SHADOW_ON, 6, true); + }else numbox->setDimensionsAll(BoxStartX, BoxStartY, ChanWidth, ChanHeight); 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() { + int head_x = BoxStartX+ChanWidth+5; + int head_w = BoxEndX-head_x; 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); }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->enableColBodyGradient(g_settings.theme.infobar_gradient_top, COL_INFOBAR_PLUS_0, g_settings.theme.infobar_gradient_top_direction);