From ea1c533ef92b5e5a5569787d7ad900ac138bd51a Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 6 Mar 2015 13:40:19 +0300 Subject: [PATCH] gui/timeosd.cpp: enable clock background paint, set background color depending on clock background option; fix colors in case theme color changed --- src/gui/timeosd.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gui/timeosd.cpp b/src/gui/timeosd.cpp index 8912373e8..57f136eb4 100644 --- a/src/gui/timeosd.cpp +++ b/src/gui/timeosd.cpp @@ -100,6 +100,17 @@ void CTimeOSD::show(time_t time_show, bool force) if (!force && (m_mode == MODE_HIDE || m_time_show == time_show)) return; m_time_show = time_show; + + syncSysColors(); + + paint_bg = true; + if (g_settings.infoClockBackground) + setColorBody(COL_MENUCONTENT_PLUS_0); + else + setColorBody(COL_BACKGROUND_PLUS_0); + + setShadowOnOff(g_settings.infoClockBackground); + paint(false); }