From 9027ac6fbabeda6ab16f67ad2a2d402af3994b09 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 4 Aug 2012 01:32:42 +0200 Subject: [PATCH] CMenuWidget: define system colors during runtime --- src/gui/widget/menue.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 86feceebe..5e370b000 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -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()) {