CComponentsButton: remove current gradient from all buttons

This will comming soon, gradient is prepared for use but disabled at
the moment till some other parts of gui parts are provide gradient
This commit is contained in:
2016-01-04 22:06:47 +01:00
committed by svenhoefer
parent 2ea156e933
commit eec34222ea

View File

@@ -102,8 +102,8 @@ void CComponentsButton::initVarButton( const int& x_pos, const int& y_pos, const
shadow = shadow_mode; shadow = shadow_mode;
shadow_w = SHADOW_OFFSET; shadow_w = SHADOW_OFFSET;
cc_body_gradient_enable = false/*g_settings.gradiant*/; //gradient is prepared for use but disabled at the moment till some other parts of gui parts are provide gradient cc_body_gradient_enable = CC_COLGRAD_OFF/*g_settings.gradiant*/; //gradient is prepared for use but disabled at the moment till some other parts of gui parts are provide gradient
setColBodyGradient(CColorGradient::gradientLight2Dark, CFrameBuffer::gradientVertical, CColorGradient::light); setColBodyGradient(cc_body_gradient_enable/*CColorGradient::gradientLight2Dark*/, CFrameBuffer::gradientVertical, CColorGradient::light);
col_frame = color_frame; col_frame = color_frame;
col_body = cc_body_gradient_enable? COL_DARK_GRAY : color_body; col_body = cc_body_gradient_enable? COL_DARK_GRAY : color_body;
col_shadow = color_shadow; col_shadow = color_shadow;