navibar: add small separator line

Origin commit data
------------------
Branch: ni/coolstream
Commit: 482caddafb
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-01-07 (Fri, 07 Jan 2022)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2022-01-07 22:15:37 +01:00
committed by vanhofen
parent 395263b25a
commit 42ee832fe9
2 changed files with 10 additions and 2 deletions

View File

@@ -58,7 +58,8 @@ CNaviBar::CNaviBar( const int &x_pos,
nb_lpic = nb_rpic = NULL;
nb_lText = nb_rText = NULL;
nb_font = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE];;
nb_font = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE];
nb_topline = NULL;
nb_lpic_enable = nb_rpic_enable = false;
nb_l_text = nb_r_text = string();
@@ -72,6 +73,13 @@ void CNaviBar::initCCItems()
int side_width = ((width - mid_width) / 2) - (2 * x_off);
int h_text = height;
// small separator line on the top
int grad = g_settings.theme.menu_Separator_gradient_enable ? CC_COLGRAD_COL_DARK_LIGHT_DARK : CC_COLGRAD_OFF;
if (!nb_topline)
nb_topline = new CComponentsShapeSquare(0, 0, width, 2, this, CC_SHADOW_OFF);
nb_topline->setColorBody(COL_MENUCONTENT_PLUS_1);
nb_topline->setColBodyGradient(grad, CFrameBuffer::gradientHorizontal, COL_MENUCONTENT_PLUS_0, CColorGradient::light);
// init left arrow
if (!nb_lpic)
{

View File

@@ -40,7 +40,7 @@ class CNaviBar : public CComponentsFrmChain
private:
CComponentsPicture *nb_lpic, *nb_rpic;
CComponentsText *nb_lText, *nb_rText;
CComponentsShapeSquare *nb_topline;
Font *nb_font;
bool nb_lpic_enable;