mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsWindow: add member to set button font and use infobar font as default
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
||||||
|
|
||||||
Classes for generic GUI-related components.
|
Classes for generic GUI-related components.
|
||||||
Copyright (C) 2012-2014 Thilo Graf 'dbt'
|
Copyright (C) 2012-2016 Thilo Graf 'dbt'
|
||||||
Copyright (C) 2012, Michael Liebmann 'micha-bbg'
|
Copyright (C) 2012, Michael Liebmann 'micha-bbg'
|
||||||
|
|
||||||
License: GPL
|
License: GPL
|
||||||
@@ -144,6 +144,7 @@ void CComponentsWindow::initVarWindow( const int& x_pos, const int& y_pos, const
|
|||||||
ccw_right_sidebar= NULL;
|
ccw_right_sidebar= NULL;
|
||||||
ccw_body = NULL;
|
ccw_body = NULL;
|
||||||
ccw_footer = NULL;
|
ccw_footer = NULL;
|
||||||
|
ccw_button_font = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL];
|
||||||
|
|
||||||
ccw_buttons = 0; //no header buttons
|
ccw_buttons = 0; //no header buttons
|
||||||
ccw_show_footer = true;
|
ccw_show_footer = true;
|
||||||
@@ -218,6 +219,7 @@ void CComponentsWindow::initFooter()
|
|||||||
ccw_footer->setWidth(width-2*fr_thickness);
|
ccw_footer->setWidth(width-2*fr_thickness);
|
||||||
ccw_footer->enableShadow(shadow);
|
ccw_footer->enableShadow(shadow);
|
||||||
ccw_footer->setCorner(corner_rad, CORNER_BOTTOM);
|
ccw_footer->setCorner(corner_rad, CORNER_BOTTOM);
|
||||||
|
ccw_footer->setButtonFont(ccw_button_font);
|
||||||
ccw_footer->setColorBody(ccw_col_footer);
|
ccw_footer->setColorBody(ccw_col_footer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
||||||
|
|
||||||
Classes for generic GUI-related components.
|
Classes for generic GUI-related components.
|
||||||
Copyright (C) 2012, 2013, 2014, Thilo Graf 'dbt'
|
Copyright (C) 2012-2016, Thilo Graf 'dbt'
|
||||||
|
|
||||||
License: GPL
|
License: GPL
|
||||||
|
|
||||||
@@ -89,6 +89,8 @@ class CComponentsWindow : public CComponentsForm
|
|||||||
fb_pixel_t ccw_col_head_text;
|
fb_pixel_t ccw_col_head_text;
|
||||||
///footer bg color
|
///footer bg color
|
||||||
fb_pixel_t ccw_col_footer;
|
fb_pixel_t ccw_col_footer;
|
||||||
|
///footer button font
|
||||||
|
Font* ccw_button_font;
|
||||||
|
|
||||||
///initialze header object
|
///initialze header object
|
||||||
void initHeader();
|
void initHeader();
|
||||||
@@ -190,6 +192,8 @@ class CComponentsWindow : public CComponentsForm
|
|||||||
|
|
||||||
///set background to footer
|
///set background to footer
|
||||||
void setWindowFooterColor(const fb_pixel_t& color){ccw_col_footer = color;}
|
void setWindowFooterColor(const fb_pixel_t& color){ccw_col_footer = color;}
|
||||||
|
///set font for footer buttons
|
||||||
|
void setWindowFooterFont(Font* font_type){ccw_button_font = font_type;}
|
||||||
|
|
||||||
///returns a pointer to the internal left side bar object, use this to get access to left sidebar properities
|
///returns a pointer to the internal left side bar object, use this to get access to left sidebar properities
|
||||||
CComponentsFrmChain* getLeftSidebarObject(){return ccw_left_sidebar;};
|
CComponentsFrmChain* getLeftSidebarObject(){return ccw_left_sidebar;};
|
||||||
|
Reference in New Issue
Block a user