mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
Enable gradient for all remaining GUI header
This commit is contained in:
@@ -545,18 +545,10 @@ void CStringInput::hide()
|
||||
void CStringInput::paint(bool sms)
|
||||
{
|
||||
frameBuffer->paintBoxRel(x + SHADOW_OFFSET, y + SHADOW_OFFSET, width, height, COL_MENUCONTENTDARK_PLUS_0, RADIUS_LARGE, CORNER_ALL); //round
|
||||
frameBuffer->paintBoxRel(x, y, width, hheight, COL_MENUHEAD_PLUS_0, RADIUS_LARGE, CORNER_TOP); //round
|
||||
frameBuffer->paintBoxRel(x, y + hheight, width, bheight, COL_MENUCONTENT_PLUS_0, sms ? 0 : RADIUS_LARGE, CORNER_BOTTOM);
|
||||
|
||||
int icol_w = 0, icol_h = 0, icol_o = 0;
|
||||
if (!(iconfile.empty()))
|
||||
{
|
||||
frameBuffer->getIconSize(iconfile.c_str(), &icol_w, &icol_h);
|
||||
frameBuffer->paintIcon(iconfile, x + (offset/2), y, hheight);
|
||||
icol_o = icol_w + (offset/2);
|
||||
}
|
||||
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+ (offset/2)+ icol_o, y+ hheight, width- offset- icol_o, head.c_str(), COL_MENUHEAD_TEXT);
|
||||
CComponentsHeader header(x, y, width, hheight, head, iconfile);
|
||||
header.paint(CC_SAVE_SCREEN_NO);
|
||||
|
||||
int tmp_y = y+ hheight+ offset+ input_h+ offset;
|
||||
if ((hint_1 != NONEXISTANT_LOCALE) || (hint_2 != NONEXISTANT_LOCALE))
|
||||
@@ -574,7 +566,8 @@ void CStringInput::paint(bool sms)
|
||||
tmp_y += offset;
|
||||
}
|
||||
|
||||
icol_w = icol_h = 0;
|
||||
int icol_w = 0;
|
||||
int icol_h = 0;
|
||||
if (sms)
|
||||
{
|
||||
frameBuffer->getIconSize(NEUTRINO_ICON_NUMERIC_PAD, &icol_w, &icol_h);
|
||||
|
Reference in New Issue
Block a user