From f9bce51a33e787ab44f1cdb6ebb19980a3a0b026 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 ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/58061679177fe8d4d06a1b2011474b9679409a5e Author: [CST] Focus Date: 2015-03-06 (Fri, 06 Mar 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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");