From b1c31fadd167ccde39c1a2b80b593e36c04a61be Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 2 Jan 2015 15:14:43 +0300 Subject: [PATCH] gui/components/cc_item_infobox.cpp: enable gradient on request --- src/gui/components/cc_item_infobox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/components/cc_item_infobox.cpp b/src/gui/components/cc_item_infobox.cpp index 25ecbe9c4..c197ea45d 100644 --- a/src/gui/components/cc_item_infobox.cpp +++ b/src/gui/components/cc_item_infobox.cpp @@ -113,6 +113,8 @@ void CComponentsInfoBox::paintPicture() pic->setHeight(height-2*fr_thickness); pic->setColorBody(col_body); + if (col_body_gradient) + pic->doPaintBg(false); //paint, but set visibility mode pic->allowPaint(cc_allow_paint); pic->paint(CC_SAVE_SCREEN_NO); @@ -120,6 +122,8 @@ void CComponentsInfoBox::paintPicture() void CComponentsInfoBox::paint(bool do_save_bg) { + col_body_gradient = g_settings.gradiant; + paintInit(do_save_bg); paintPicture();