From 88f6306ea76a1496ced010cf8a47add366e7fc91 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 10 Oct 2016 14:19:54 +0200 Subject: [PATCH] infoclock: fix shadow color; use SHADOW_OFFSET definition Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/340d4882bcddcb67950ad24f6a5064f3604b0ca9 Author: vanhofen Date: 2016-10-10 (Mon, 10 Oct 2016) Origin message was: ------------------ - infoclock: fix shadow color; use SHADOW_OFFSET definition --- src/gui/infoclock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/infoclock.cpp b/src/gui/infoclock.cpp index a3db1f607..08e86907d 100644 --- a/src/gui/infoclock.cpp +++ b/src/gui/infoclock.cpp @@ -54,13 +54,13 @@ void CInfoClock::initCCLockItems() paint_bg = g_settings.infoClockBackground; //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 if (paint_bg){ cl_col_text = COL_MENUCONTENT_TEXT; setColorBody(COL_MENUCONTENT_PLUS_0); - enableShadow(CC_SHADOW_ON, 3); + enableShadow(CC_SHADOW_ON, SHADOW_OFFSET/2); }else{ cl_col_text = COL_INFOCLOCK_TEXT; setColorBody(COL_BACKGROUND_PLUS_0);