CInfoViewer: use correct corners and text color for time display

Assigning of these properties are required after theme or color changes.
This commit is contained in:
2013-12-01 22:37:43 +01:00
parent cbfd097060
commit fcb7b88ff0

View File

@@ -256,14 +256,16 @@ void CInfoViewer::paintTime (bool show_dot)
if (clock == NULL){
clock = new CComponentsFrmClock();
clock->setCorner(RADIUS_LARGE, CORNER_TOP_RIGHT);
clock->doPaintBg(false);
}
clock->setColorBody(COL_INFOBAR_PLUS_0);
clock->setCorner(RADIUS_LARGE, CORNER_TOP_RIGHT);
clock->setDimensionsAll(clock_x, clock_y, clock_w, clock_h);
clock->setClockFont(SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME);
clock->setClockFormat(show_dot ? "%H:%M" : "%H.%M");
clock->setTextColor(COL_INFOBAR_TEXT);
clock->paint(CC_SAVE_SCREEN_NO);
}