CComponents: move variable cc_gradientData, paintGradient into base class

Variable now usable via g_settings in all subclasses. enable/disable.
TODO: gradient type handling


Origin commit data
------------------
Branch: ni/coolstream
Commit: 64c84fb490
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)



------------------
This commit was generated by Migit
This commit is contained in:
2014-09-20 21:34:43 +02:00
committed by [CST] Focus
parent fdbad36872
commit 404c0e2b94
7 changed files with 21 additions and 15 deletions

View File

@@ -49,9 +49,6 @@ class CComponentsHeader : public CComponentsForm
fb_pixel_t color_body = COL_MENUHEAD_PLUS_0,
fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
fb_pixel_t *gradientBuf;
bool paintGradient;
protected:
///object: icon object, see also setIcon()
CComponentsPicture * cch_icon_obj;
@@ -203,9 +200,6 @@ class CComponentsHeader : public CComponentsForm
///paint header
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
//set color gradient an/off
virtual void setPaintGradient(bool g) { paintGradient = g; };
};
//! Sub class of CComponentsHeader.