CMsgBox: use same colors for window body, footer and button container

This commit is contained in:
2016-10-05 22:33:14 +02:00
parent 9d09bc36ce
commit 857b494c47

View File

@@ -88,6 +88,7 @@ void CMsgBox::init(const int& Height, const int& ShowButtons, const msg_result_t
//enable footer and add its height
showFooter(true);
btn_enable_bg = false;
ccw_col_footer = ccw_body->getColorBody();
ccw_footer->doPaintBg(false);
int h_current = height;
h_current += ccw_footer->getHeight();
@@ -178,6 +179,7 @@ void CMsgBox::initButtons()
}
ccw_footer->setButtonLabels(v_buttons, 0, 125);
ccw_footer->getButtonChainObject()->setColorBody(col_body);
//show buttons with background and shadow
ccw_footer->enableButtonBg(btn_enable_bg);