mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
CComponentsInfoBox: add switch to enable gradient for info box
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7016a86ca2
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-04-27 (Mon, 27 Apr 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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));
|
||||
|
||||
|
@@ -83,7 +83,8 @@ class CComponentsInfoBox : public CComponentsText
|
||||
void setPicture(const std::string& picture_name);
|
||||
///set property: path or name of displayed image, parameter as const char*
|
||||
void setPicture(const char* picture_name);
|
||||
|
||||
///set property: gradient behavior
|
||||
void enableGradient(bool enable) { col_body_gradient = enable; }
|
||||
///paint item
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
};
|
||||
|
Reference in New Issue
Block a user