mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
CComponentsHeader: add member that allows switching to small size
Origin commit data
------------------
Commit: 78cdee08a8
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-08 (Sun, 08 Sep 2013)
This commit is contained in:
@@ -98,6 +98,7 @@ void CComponentsHeader::initVarHeader()
|
||||
corner_type = CORNER_TOP;
|
||||
|
||||
//init header height
|
||||
cch_size_mode = CC_HEADER_SIZE_LARGE;
|
||||
cch_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE];
|
||||
height = cch_font->getHeight();
|
||||
|
||||
@@ -343,6 +344,9 @@ void CComponentsHeader::initCaption()
|
||||
|
||||
void CComponentsHeader::initCCItems()
|
||||
{
|
||||
//set size
|
||||
cch_font = (cch_size_mode == CC_HEADER_SIZE_LARGE? g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE] : g_Font[SNeutrinoSettings::FONT_TYPE_MENU]);
|
||||
|
||||
//init icon
|
||||
initIcon();
|
||||
|
||||
|
Reference in New Issue
Block a user