mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
enable color-to-color gradient
This commit is contained in:
@@ -96,6 +96,10 @@ class CComponents : public CComponentsSignals, public COSDFader
|
||||
uint8_t cc_body_gradient_saturation;
|
||||
///property: background gradient direction
|
||||
int cc_body_gradient_direction;
|
||||
///property: background gradient mode
|
||||
bool cc_body_gradient_c2c;
|
||||
///property: background gradient 2nd color
|
||||
fb_pixel_t cc_body_gradient_2nd_col;
|
||||
|
||||
///property: true=component has shadow
|
||||
bool shadow;
|
||||
@@ -210,6 +214,8 @@ class CComponents : public CComponentsSignals, public COSDFader
|
||||
cc_body_gradient_intensity_v_max=v_max;
|
||||
cc_body_gradient_saturation=s; };
|
||||
|
||||
virtual void set2ndColor(fb_pixel_t col_2nd){ cc_body_gradient_c2c = true; cc_body_gradient_2nd_col = col_2nd;};
|
||||
|
||||
///get frame color
|
||||
inline virtual fb_pixel_t getColorFrame(){return col_frame;};
|
||||
///get body color
|
||||
|
Reference in New Issue
Block a user