mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
CComponentsWindow: add member setWindowHeaderTextColor()
To modifiy header text color.
Origin commit data
------------------
Commit: 7659dd4642
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-29 (Sun, 29 Nov 2015)
This commit is contained in:
@@ -152,7 +152,8 @@ void CComponentsWindow::initVarWindow( const int& x_pos, const int& y_pos, const
|
|||||||
ccw_show_l_sideber = false;
|
ccw_show_l_sideber = false;
|
||||||
ccw_show_r_sideber = false;
|
ccw_show_r_sideber = false;
|
||||||
ccw_w_sidebar = 40;
|
ccw_w_sidebar = 40;
|
||||||
ccw_col_head = COL_MENUCONTENT_PLUS_0;
|
ccw_col_head = COL_MENUCONTENT_PLUS_0;
|
||||||
|
ccw_col_head_text = COL_MENUHEAD_TEXT;
|
||||||
|
|
||||||
page_scroll_mode = PG_SCROLL_M_OFF; //permanent disabled here, only in body used!
|
page_scroll_mode = PG_SCROLL_M_OFF; //permanent disabled here, only in body used!
|
||||||
|
|
||||||
@@ -198,7 +199,7 @@ void CComponentsWindow::initHeader()
|
|||||||
ccw_head->setWidth(width-2*fr_thickness);
|
ccw_head->setWidth(width-2*fr_thickness);
|
||||||
ccw_head->setPos(0, 0);
|
ccw_head->setPos(0, 0);
|
||||||
ccw_head->setIcon(ccw_icon_name);
|
ccw_head->setIcon(ccw_icon_name);
|
||||||
ccw_head->setCaption(ccw_caption, ccw_align_mode);
|
ccw_head->setCaption(ccw_caption, ccw_align_mode, ccw_col_head_text);
|
||||||
ccw_head->setContextButton(ccw_buttons);
|
ccw_head->setContextButton(ccw_buttons);
|
||||||
ccw_head->setCorner(corner_rad, CORNER_TOP);
|
ccw_head->setCorner(corner_rad, CORNER_TOP);
|
||||||
ccw_head->setColorBody(ccw_col_head);
|
ccw_head->setColorBody(ccw_col_head);
|
||||||
|
@@ -85,6 +85,8 @@ class CComponentsWindow : public CComponentsForm
|
|||||||
int ccw_w_sidebar;
|
int ccw_w_sidebar;
|
||||||
///header bg color
|
///header bg color
|
||||||
fb_pixel_t ccw_col_head;
|
fb_pixel_t ccw_col_head;
|
||||||
|
///header text color
|
||||||
|
fb_pixel_t ccw_col_head_text;
|
||||||
|
|
||||||
///initialze header object
|
///initialze header object
|
||||||
void initHeader();
|
void initHeader();
|
||||||
@@ -160,7 +162,9 @@ class CComponentsWindow : public CComponentsForm
|
|||||||
void enableSidebar(const int& sidbar_type = CC_WINDOW_LEFT_SIDEBAR | CC_WINDOW_RIGHT_SIDEBAR);
|
void enableSidebar(const int& sidbar_type = CC_WINDOW_LEFT_SIDEBAR | CC_WINDOW_RIGHT_SIDEBAR);
|
||||||
|
|
||||||
///set caption in header with string, see also getHeaderObject()
|
///set caption in header with string, see also getHeaderObject()
|
||||||
void setWindowCaption(const std::string& text, const int& align_mode = CTextBox::NO_AUTO_LINEBREAK){ccw_caption = text; ccw_align_mode = align_mode;};
|
void setWindowCaption(const std::string& text, const int& align_mode = CTextBox::NO_AUTO_LINEBREAK){ccw_caption = text; ccw_align_mode = align_mode;}
|
||||||
|
///set header text color
|
||||||
|
void setWindowHeaderTextColor(const fb_pixel_t& color){ccw_col_head_text = color;}
|
||||||
///set background to header
|
///set background to header
|
||||||
void setWindowHeaderColor(const fb_pixel_t& color){ccw_col_head = color;}
|
void setWindowHeaderColor(const fb_pixel_t& color){ccw_col_head = color;}
|
||||||
///set caption in header from locales, see also getHeaderObject()
|
///set caption in header from locales, see also getHeaderObject()
|
||||||
|
Reference in New Issue
Block a user