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

This commit is contained in:
2019-04-02 16:34:56 +02:00
parent 61ae84f497
commit a46f5d1ee1

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;