From f71d87d480df7b5b3e63d562464d243f6f5f284f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 2 Apr 2019 22:10:16 +0200 Subject: [PATCH] cc_frm_header.cpp: add gradient mode if header is in small mode Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/7ecda7c8be816d66f9ed47802c6e99cdfeab4f06 Author: Thilo Graf Date: 2019-04-02 (Tue, 02 Apr 2019) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_frm_header.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index cb1556207..6b866ac24 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -137,9 +137,10 @@ void CComponentsHeader::initVarHeader( const int& x_pos, const int& y_pos, const col_body = col_body_old = color_body; col_shadow = col_shadow_old = color_shadow; - cc_body_gradient_enable = cc_body_gradient_enable_old = g_settings.theme.menu_Head_gradient; - cc_body_gradient_direction = cc_body_gradient_direction_old = g_settings.theme.menu_Head_gradient_direction; + cc_body_gradient_enable = cc_body_gradient_enable_old = (cch_size_mode == CC_HEADER_SIZE_SMALL ? g_settings.theme.menu_SubHead_gradient : g_settings.theme.menu_Head_gradient); + cc_body_gradient_direction = cc_body_gradient_direction_old = (cch_size_mode == CC_HEADER_SIZE_SMALL ? g_settings.theme.menu_SubHead_gradient_direction : g_settings.theme.menu_Head_gradient_direction); cc_body_gradient_mode = CColorGradient::gradientLight2Dark; + cch_text = caption; cch_icon_name = icon_name;