From 50e9614a7874d21ac06feb8af54acd3c3cc4ba4e Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 6 Mar 2015 13:38:30 +0300 Subject: [PATCH] gui/infoclock.cpp: enable clock background paint, set background color depending on clock background option Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/58061679177fe8d4d06a1b2011474b9679409a5e Author: [CST] Focus Date: 2015-03-06 (Fri, 06 Mar 2015) --- src/gui/infoclock.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/infoclock.cpp b/src/gui/infoclock.cpp index 769276713..be6cb15a3 100644 --- a/src/gui/infoclock.cpp +++ b/src/gui/infoclock.cpp @@ -71,7 +71,13 @@ void CInfoClock::Init() else setTextColor(COL_INFOCLOCK_TEXT); - paint_bg = g_settings.infoClockBackground; + paint_bg = true; + if (g_settings.infoClockBackground) + setColorBody(COL_MENUCONTENT_PLUS_0); + else + setColorBody(COL_BACKGROUND_PLUS_0); + + setShadowOnOff(g_settings.infoClockBackground); if (g_settings.infoClockSeconds) setClockFormat("%H:%M:%S");