mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
gui/timeosd.cpp: enable clock background paint,
set background color depending on clock background option; fix colors in case theme color changed
This commit is contained in:
@@ -100,6 +100,17 @@ void CTimeOSD::show(time_t time_show, bool force)
|
|||||||
if (!force && (m_mode == MODE_HIDE || m_time_show == time_show))
|
if (!force && (m_mode == MODE_HIDE || m_time_show == time_show))
|
||||||
return;
|
return;
|
||||||
m_time_show = time_show;
|
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);
|
paint(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user