From 4355c873cc91ef6b2cb9b938f3c53b61ee9a5af8 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 29 Nov 2013 21:09:50 +0100 Subject: [PATCH] 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. --- src/gui/infoclock.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/infoclock.cpp b/src/gui/infoclock.cpp index e7d3d5aee..e7d690546 100644 --- a/src/gui/infoclock.cpp +++ b/src/gui/infoclock.cpp @@ -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);