From b2e71497d8c7414887b9d7c41b6321991e258f9f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 27 Nov 2016 14:29:50 +0100 Subject: [PATCH] CComponentsFooter: disable gradient for footers This is not really completly implemented for footer at the momemnt, because button objects are still not prepared or tuned for that. If it is enabled, currently it could occur unintentionally background behavior eg.: flickereffects or background display errors in button objects. NOTE: anyway users can enable gradient in theme files and could override this setting. Now here it is globally disabled for footers. If it works right, it will be enabled in future. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/427b65813d9f0df6b05b18407ae70ca966ddd482 Author: Thilo Graf Date: 2016-11-27 (Sun, 27 Nov 2016) Origin message was: ------------------ CComponentsFooter: disable gradient for footers This is not really completly implemented for footer at the momemnt, because button objects are still not prepared or tuned for that. If it is enabled, currently it could occur unintentionally background behavior eg.: flickereffects or background display errors in button objects. NOTE: anyway users can enable gradient in theme files and could override this setting. Now here it is globally disabled for footers. If it works right, it will be enabled in future. --- src/gui/components/cc_frm_footer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_footer.cpp b/src/gui/components/cc_frm_footer.cpp index 4a1cbfc4e..df899c306 100644 --- a/src/gui/components/cc_frm_footer.cpp +++ b/src/gui/components/cc_frm_footer.cpp @@ -79,7 +79,7 @@ void CComponentsFooter::initVarFooter( const int& x_pos, const int& y_pos, const col_frame = color_frame; col_body = color_body; col_shadow = color_shadow; - cc_body_gradient_enable = cc_body_gradient_enable_old = g_settings.theme.menu_ButtonBar_gradient; //TODO: not complete implemented at the moment + cc_body_gradient_enable = cc_body_gradient_enable_old = CC_COLGRAD_OFF/*g_settings.theme.menu_ButtonBar_gradient*/; //TODO: not complete implemented at the moment cc_body_gradient_direction = CFrameBuffer::gradientVertical; cc_body_gradient_mode = CColorGradient::gradientDark2Light; btn_auto_frame_col = false;