- colors: make footer background color configurable

TODO: footer text color and maybe footer font
This commit is contained in:
svenhoefer
2016-08-15 00:14:47 +02:00
parent 13966c519b
commit cc5258e6d5
21 changed files with 58 additions and 19 deletions

View File

@@ -36,7 +36,7 @@
#include <driver/neutrinofonts.h>
#include <driver/rcinput.h>
#define COL_BUTTON_BODY COL_SHADOW_PLUS_1
#define COL_BUTTON_BODY COL_MENUFOOT_PLUS_0
#define COL_BUTTON_TEXT_ENABLED COL_BLACK
#define COL_BUTTON_TEXT_DISABLED COL_LIGHT_GRAY

View File

@@ -65,7 +65,7 @@ class CComponentsFooter : public CComponentsHeader
CComponentsForm *parent = NULL,
int shadow_mode = CC_SHADOW_OFF,
fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6,
fb_pixel_t color_body = COL_SHADOW_PLUS_1,
fb_pixel_t color_body = COL_MENUFOOT_PLUS_0,
fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
///show button frame and background, default false
@@ -86,7 +86,7 @@ class CComponentsFooter : public CComponentsHeader
CComponentsForm *parent = NULL,
int shadow_mode = CC_SHADOW_OFF,
fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6,
fb_pixel_t color_body = COL_SHADOW_PLUS_1,
fb_pixel_t color_body = COL_MENUFOOT_PLUS_0,
fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
///add button labels with string label type as content, count as size_t, chain_width as int, label width as int

View File

@@ -155,7 +155,7 @@ void CComponentsWindow::initVarWindow( const int& x_pos, const int& y_pos, const
ccw_w_sidebar = 40;
ccw_col_head = COL_MENUHEAD_PLUS_0;
ccw_col_head_text = COL_MENUHEAD_TEXT;
ccw_col_footer = COL_SHADOW_PLUS_1;
ccw_col_footer = COL_MENUFOOT_PLUS_0;
page_scroll_mode = PG_SCROLL_M_OFF; //permanent disabled here, only in body used!