CImageInfo: try to fix paint button paint

Handling with background and frame was changed
This commit is contained in:
2015-11-19 15:54:14 +01:00
parent 23f67513b7
commit da786ac384

View File

@@ -148,6 +148,7 @@ int CImageInfo::exec(CMenuTarget* parent, const std::string &)
//paint items
cc_sub_caption->paint(false);
cc_lic->paint(false);
btn_red->kill();
btn_red->paint(false);
}
else if((msg == CRCInput::RC_sat) || (msg == CRCInput::RC_favorites)) {
@@ -187,6 +188,9 @@ void CImageInfo::ShowWindow()
int h_footer = footer->getHeight();
fb_pixel_t btn_col = /*g_settings.theme.Button_gradient ? COL_BUTTON_BODY :*/ footer->getColorBody(); //TODO: Button_gradient option
btn_red = new CComponentsButtonRed(10, CC_CENTERED, 250, h_footer-h_footer/4, LOCALE_BUILDINFO_MENU, footer, false , true, false, footer->getColorBody(), btn_col);
btn_red->doPaintBg(false);
btn_red->setButtonTextColor(COL_INFOBAR_SHADOW_TEXT);
btn_red->setColBodyGradient(CC_COLGRAD_OFF);
}
//prepare minitv