infoclock: fix shadow color; use SHADOW_OFFSET definition

Origin commit data
------------------
Commit: 340d4882bc
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- infoclock: fix shadow color; use SHADOW_OFFSET definition
This commit is contained in:
vanhofen
2016-10-10 14:19:54 +02:00
parent 1aefa781c1
commit 88f6306ea7

View File

@@ -54,13 +54,13 @@ void CInfoClock::initCCLockItems()
paint_bg = g_settings.infoClockBackground; paint_bg = g_settings.infoClockBackground;
//use current theme colors //use current theme colors
setColorAll(COL_FRAME_PLUS_0, COL_MENUCONTENT_PLUS_0, COL_MENUCONTENTDARK_PLUS_0); setColorAll(COL_FRAME_PLUS_0, COL_MENUCONTENT_PLUS_0, COL_SHADOW_PLUS_0);
//set text color //set text color
if (paint_bg){ if (paint_bg){
cl_col_text = COL_MENUCONTENT_TEXT; cl_col_text = COL_MENUCONTENT_TEXT;
setColorBody(COL_MENUCONTENT_PLUS_0); setColorBody(COL_MENUCONTENT_PLUS_0);
enableShadow(CC_SHADOW_ON, 3); enableShadow(CC_SHADOW_ON, SHADOW_OFFSET/2);
}else{ }else{
cl_col_text = COL_INFOCLOCK_TEXT; cl_col_text = COL_INFOCLOCK_TEXT;
setColorBody(COL_BACKGROUND_PLUS_0); setColorBody(COL_BACKGROUND_PLUS_0);