mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
helpbox/hintbox: use proven font FONT_TYPE_MENU instead of FONT_TYPE_INFOBAR_INFO
Origin commit data
------------------
Commit: 37057272ac
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
Origin message was:
------------------
- helpbox/hintbox: use proven font FONT_TYPE_MENU instead of FONT_TYPE_INFOBAR_INFO
This commit is contained in:
@@ -54,7 +54,7 @@ Helpbox::Helpbox( const string& Title,
|
||||
|
||||
hbox_font = default_font_text;
|
||||
if (default_font_text == NULL)
|
||||
hbox_font = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO];
|
||||
hbox_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]; //NI
|
||||
|
||||
if (!Default_Text.empty())
|
||||
addLine(Default_Text.c_str(), Default_Text, text_mode, line_space, HELPBOX_DEFAULT_LINE_INDENT ,hbox_font);
|
||||
|
@@ -132,7 +132,7 @@ void CHintBox::init(const std::string& Text, const int& Width, const std::string
|
||||
timeout = HINTBOX_DEFAULT_TIMEOUT;
|
||||
w_indentation = indent;
|
||||
|
||||
hb_font = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO];
|
||||
hb_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]; //NI
|
||||
|
||||
//enable shadow
|
||||
shadow = true;
|
||||
@@ -321,7 +321,7 @@ void CHintBox::setMsgText(const std::string& Text, const uint& hint_id, const in
|
||||
CComponentsInfoBox *obj_text = static_cast<CComponentsInfoBox*>(ccw_body->getCCItem(id));
|
||||
|
||||
//set required font and line size
|
||||
Font* font = font_text == NULL ? g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO] : font_text;
|
||||
Font* font = font_text == NULL ? g_Font[SNeutrinoSettings::FONT_TYPE_MENU] : font_text; //NI
|
||||
if (obj_text)
|
||||
obj_text->setText(Text, mode, font, color_text, style);
|
||||
}
|
||||
|
Reference in New Issue
Block a user