CMenuWidget: define system colors during runtime

This commit is contained in:
2012-08-04 01:32:42 +02:00
parent 485dca43e2
commit 9027ac6fba

View File

@@ -1149,9 +1149,13 @@ void CMenuWidget::paintHint(int pos)
details_line->setYPos(ypos1a);
details_line->setYPosDown(ypos2a);
details_line->setHMarkDown(markh);
details_line->setColor(COL_MENUCONTENT_PLUS_6, COL_MENUCONTENTDARK_PLUS_0);
details_line->syncSysColors();
}
#if 0
details_line->paint(savescreen);
#endif
details_line->paint();
if (info_box == NULL)
info_box = new CComponentsInfoBox(x, ypos2, iwidth, hint_height);
@@ -1159,11 +1163,15 @@ void CMenuWidget::paintHint(int pos)
info_box->setXPos(x);
info_box->setYPos(ypos2);
info_box->setWidth(iwidth);
info_box->setColor(COL_MENUCONTENT_PLUS_6, COL_MENUCONTENTDARK_PLUS_0, COL_MENUCONTENTDARK_PLUS_0);
info_box->setCornerRadius(RADIUS_LARGE);
info_box->syncSysColors();
}
#if 0
/* force full paint - menu-over i.e. option chooser with pulldown can overwrite */
info_box->paint(savescreen, true);
#endif
info_box->paint();
int offset = 10;
if (!item->hintIcon.empty()) {