CInfoViewer: use gradient settings for infobar text box too

This commit is contained in:
2016-01-14 20:26:35 +01:00
committed by M. Liebmann
parent b320878b93
commit 2207019bfd

View File

@@ -1998,6 +1998,7 @@ void CInfoViewer::showInfoFile()
infobar_txt->setTextColor(COL_INFOBAR_TEXT);
infobar_txt->setColorBody(COL_INFOBAR_PLUS_0);
infobar_txt->doPaintTextBoxBg(false);
infobar_txt->enableColBodyGradient(g_settings.theme.infobar_gradient_top, g_settings.theme.infobar_gradient_top ? COL_INFOBAR_PLUS_0 : header->getColorBody(), g_settings.theme.infobar_gradient_top_direction);
//paint info, don't save background, if already painted, global hide is also done by killTitle()
bool save_bg = !infobar_txt->isPainted();