From f2adb17369e821dec0ba07a7f2c1ecfedcd69f85 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 2 Apr 2019 22:10:16 +0200 Subject: [PATCH] menue.cpp: apply gradient modes for sub header Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/47a784e396f5f7e07ec449569c7473a33a1aec7c Author: Thilo Graf Date: 2019-04-02 (Tue, 02 Apr 2019) --- src/gui/widget/menue.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index cbd3b0058..2fd8b1d57 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -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)