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.


Origin commit data
------------------
Commit: 4355c873cc
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-29 (Fri, 29 Nov 2013)
This commit is contained in:
2013-11-29 21:09:50 +01:00
parent 4c2c559da3
commit 5eac6b9e9b

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);