mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CComponentsHeader: declare l_font, s_font as global
Useful for init in header sub classes. So its possible to use other prefined size mode fonts
This commit is contained in:
@@ -96,6 +96,8 @@ void CComponentsHeader::initVarHeader( const int& x_pos, const int& y_pos, const
|
||||
height = height_old = h;
|
||||
|
||||
cch_font = NULL;
|
||||
l_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE];
|
||||
s_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU];
|
||||
cch_size_mode = CC_HEADER_SIZE_LARGE;
|
||||
CNeutrinoApp::getInstance()->OnAfterSetupFonts.connect(sigc::mem_fun(this, &CComponentsHeader::resetFont));
|
||||
|
||||
@@ -172,9 +174,6 @@ void CComponentsHeader::resetFont()
|
||||
|
||||
void CComponentsHeader::initCaptionFont()
|
||||
{
|
||||
Font *l_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE];
|
||||
Font *s_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU];
|
||||
|
||||
if (cch_font == NULL){
|
||||
cch_font = (cch_size_mode == CC_HEADER_SIZE_LARGE? l_font : s_font);
|
||||
//select matching height
|
||||
|
Reference in New Issue
Block a user