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;