CInfoClock: ensure use of current theme colors

If user has changed colors or theme, new color settings must be applied,
otherwise settings have no effect.
This commit is contained in:
2013-11-29 21:09:50 +01:00
parent 15b2b2ec05
commit 4355c873cc

View File

@@ -61,6 +61,10 @@ void CInfoClock::Init()
oldSize = g_settings.infoClockFontSize;
setClockFontSize(g_settings.infoClockFontSize);
}
//use current theme colors
syncSysColors();
int x_old = x, y_old = y, width_old = width, height_old = height;
CVolumeHelper::getInstance()->refresh(cl_font);
CVolumeHelper::getInstance()->getInfoClockDimensions(&x, &y, &width, &height);