CComponentsInfoBox: add switch to enable gradient for info box

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 7016a86ca2
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-04-27 (Mon, 27 Apr 2015)
This commit is contained in:
[CST] Focus
2015-04-27 09:54:33 +02:00
committed by Thilo Graf
parent c4d94d60fd
commit fd94f4fdb6
2 changed files with 6 additions and 1 deletions

View File

@@ -109,6 +109,10 @@ void CComponentsInfoBox::paintPicture()
pic->setColorBody(col_body);
//set gradient behavior of pic object
if (col_body_gradient)
pic->doPaintBg(false);
//fit icon into frame
pic->setYPos(y+(height/2-pic->getHeight()/2));