menue.cpp: apply gradient modes for sub header

Origin commit data
------------------
Branch: ni/coolstream
Commit: 47a784e396
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-04-02 (Tue, 02 Apr 2019)


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

------------------
This commit was generated by Migit
This commit is contained in:
2019-04-02 22:10:16 +02:00
committed by vanhofen
parent f71d87d480
commit fa914cff9f

View File

@@ -1412,7 +1412,7 @@ void CMenuWidget::initHeader()
header->setCaption(getName());
header->setColorAll(COL_FRAME_PLUS_0, COL_MENUHEAD_PLUS_0, COL_SHADOW_PLUS_0);
header->setCaptionColor(COL_MENUHEAD_TEXT);
header->enableColBodyGradient(g_settings.theme.menu_Head_gradient, COL_MENUCONTENT_PLUS_0);
header->enableColBodyGradient(g_settings.theme.menu_Head_gradient, COL_MENUCONTENT_PLUS_0, g_settings.theme.menu_Head_gradient_direction);
header->enableGradientBgCleanUp(savescreen);
if (!subhead_text.empty())
@@ -1434,8 +1434,10 @@ void CMenuWidget::initSubHeader()
}
sub_header->setWidth(header->getWidth());
sub_header->setCaption(subhead_text);
sub_header->setColorAll(COL_FRAME_PLUS_0, g_settings.theme.menu_Head_gradient ? COL_MENUCONTENT_PLUS_0 : COL_MENUHEAD_PLUS_0, COL_SHADOW_PLUS_0);
sub_header->setColorAll(COL_FRAME_PLUS_0, COL_MENUHEAD_PLUS_0, COL_SHADOW_PLUS_0);
sub_header->setCaptionColor(COL_MENUHEAD_TEXT);
sub_header->enableColBodyGradient(g_settings.theme.menu_SubHead_gradient, COL_MENUCONTENT_PLUS_0, g_settings.theme.menu_SubHead_gradient_direction);
sub_header->enableGradientBgCleanUp(savescreen);
}
void CMenuWidget::setMenuPos(const int& menu_width)