mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
CMenuWidget: define system colors during runtime
This commit is contained in:
@@ -1149,9 +1149,13 @@ void CMenuWidget::paintHint(int pos)
|
|||||||
details_line->setYPos(ypos1a);
|
details_line->setYPos(ypos1a);
|
||||||
details_line->setYPosDown(ypos2a);
|
details_line->setYPosDown(ypos2a);
|
||||||
details_line->setHMarkDown(markh);
|
details_line->setHMarkDown(markh);
|
||||||
details_line->setColor(COL_MENUCONTENT_PLUS_6, COL_MENUCONTENTDARK_PLUS_0);
|
details_line->syncSysColors();
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
details_line->paint(savescreen);
|
details_line->paint(savescreen);
|
||||||
|
#endif
|
||||||
|
details_line->paint();
|
||||||
|
|
||||||
|
|
||||||
if (info_box == NULL)
|
if (info_box == NULL)
|
||||||
info_box = new CComponentsInfoBox(x, ypos2, iwidth, hint_height);
|
info_box = new CComponentsInfoBox(x, ypos2, iwidth, hint_height);
|
||||||
@@ -1159,11 +1163,15 @@ void CMenuWidget::paintHint(int pos)
|
|||||||
info_box->setXPos(x);
|
info_box->setXPos(x);
|
||||||
info_box->setYPos(ypos2);
|
info_box->setYPos(ypos2);
|
||||||
info_box->setWidth(iwidth);
|
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->setCornerRadius(RADIUS_LARGE);
|
||||||
|
info_box->syncSysColors();
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
/* force full paint - menu-over i.e. option chooser with pulldown can overwrite */
|
/* force full paint - menu-over i.e. option chooser with pulldown can overwrite */
|
||||||
info_box->paint(savescreen, true);
|
info_box->paint(savescreen, true);
|
||||||
|
#endif
|
||||||
|
info_box->paint();
|
||||||
|
|
||||||
|
|
||||||
int offset = 10;
|
int offset = 10;
|
||||||
if (!item->hintIcon.empty()) {
|
if (!item->hintIcon.empty()) {
|
||||||
|
Reference in New Issue
Block a user