mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponentsHeader: Use color gradient for paint header
Conflicts:
src/gui/widget/menue.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: bfc1c04d83
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-20 (Sat, 20 Sep 2014)
------------------
This commit was generated by Migit
This commit is contained in:
committed by
[CST] Focus
parent
093d638920
commit
222bea4e5a
@@ -29,6 +29,7 @@
|
||||
#include "cc_item_picture.h"
|
||||
#include "cc_item_text.h"
|
||||
#include "cc_frm_icons.h"
|
||||
#include <driver/colorgradient.h>
|
||||
|
||||
//! Sub class of CComponentsForm. Shows a header with prepared items.
|
||||
/*!
|
||||
@@ -48,6 +49,9 @@ 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;
|
||||
@@ -92,6 +96,8 @@ class CComponentsHeader : public CComponentsForm
|
||||
void initCaption();
|
||||
///sub: init context button object
|
||||
void initButtons();
|
||||
///sub: init color gradient
|
||||
void initGradient();
|
||||
|
||||
public:
|
||||
enum
|
||||
@@ -197,6 +203,9 @@ 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.
|
||||
|
Reference in New Issue
Block a user