CComponents: add setColBodyGradient() to set gradient properties

This provides possibility to set relevant gradiant properties in cc sub classes
This commit is contained in:
2014-09-20 21:35:02 +02:00
committed by [CST] Focus
parent 581405e076
commit f9147d185a
6 changed files with 28 additions and 10 deletions

View File

@@ -99,6 +99,7 @@ void CComponentsHeader::initVarHeader( const int& x_pos, const int& y_pos, const
col_shadow = color_shadow;
col_body = COL_MENUHEAD_PLUS_0;
col_body_gradient = g_settings.gradiant;
cc_body_gradient_direction = CFrameBuffer::gradientVertical;
cch_text = caption;
cch_icon_name = icon_name;
@@ -126,8 +127,6 @@ CComponentsHeader::~CComponentsHeader()
{
dprintf(DEBUG_DEBUG, "[~CComponentsHeader] [%s - %d] delete...\n", __func__, __LINE__);
v_cch_btn.clear();
if (cc_gradientBuf)
free(cc_gradientBuf);
}
void CComponentsHeader::setCaption(const std::string& caption, const int& align_mode)