cc_frm_header.cpp: add gradient mode if header is in small mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7ecda7c8be
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 8a8fa7419a
commit f71d87d480

View File

@@ -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;