mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- epgplus: use global header font
This commit is contained in:
@@ -72,7 +72,6 @@ int EpgPlus::channelsTableWidth = 0;
|
||||
|
||||
static EpgPlus::FontSetting fontSettingTable[] =
|
||||
{
|
||||
{ EpgPlus::EPGPlus_header_font, "Regular", 27 },
|
||||
{ EpgPlus::EPGPlus_timeline_fonttime, "Bold", 16 },
|
||||
{ EpgPlus::EPGPlus_timeline_fontdate, "Bold", 14 },
|
||||
{ EpgPlus::EPGPlus_channelentry_font, "Bold", 16 },
|
||||
@@ -110,20 +109,20 @@ EpgPlus::Header::~Header()
|
||||
|
||||
void EpgPlus::Header::init()
|
||||
{
|
||||
font = fonts[EPGPlus_header_font];
|
||||
font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE];
|
||||
}
|
||||
|
||||
void EpgPlus::Header::paint(const char * Name)
|
||||
{
|
||||
std::string head = Name ? Name : g_Locale->getText(LOCALE_EPGPLUS_HEAD);
|
||||
|
||||
CComponentsHeader _header(this->x, this->y, this->width, this->font->getHeight()+4, head);
|
||||
CComponentsHeader _header(this->x, this->y, this->width, this->font->getHeight(), head);
|
||||
_header.paint(CC_SAVE_SCREEN_NO);
|
||||
}
|
||||
|
||||
int EpgPlus::Header::getUsedHeight()
|
||||
{
|
||||
return font->getHeight() + 8 ;
|
||||
return font->getHeight();
|
||||
}
|
||||
|
||||
Font *EpgPlus::TimeLine::fontTime = NULL;
|
||||
|
@@ -41,8 +41,7 @@ class EpgPlus
|
||||
public:
|
||||
enum FontSettingID
|
||||
{
|
||||
EPGPlus_header_font = 0,
|
||||
EPGPlus_timeline_fonttime,
|
||||
EPGPlus_timeline_fonttime = 0,
|
||||
EPGPlus_timeline_fontdate,
|
||||
EPGPlus_channelentry_font,
|
||||
EPGPlus_channelevententry_font,
|
||||
|
Reference in New Issue
Block a user