CComponents: move variable cc_gradientData, paintGradient into base class

Variable now usable via g_settings in all subclasses. enable/disable.
TODO: gradient type handling
This commit is contained in:
2014-09-20 21:34:43 +02:00
committed by [CST] Focus
parent 8762d4b871
commit 64c84fb490
7 changed files with 21 additions and 15 deletions

View File

@@ -115,9 +115,7 @@ void CComponentsHeader::initVarHeader( const int& x_pos, const int& y_pos, const
cch_icon_w = 0;
cch_text_x = cch_offset;
cch_buttons_space = cch_offset;
gradientBuf = NULL;
paintGradient = false;
paintGradient = g_settings.gradiant;
addContextButton(buttons);
initCCItems();