Fix item tooltip background color not working

This commit is contained in:
Lars Mueller 2020-12-24 14:26:42 +01:00 committed by sfan5
parent 55dba1bc6d
commit 09d7fbd645

@ -3718,7 +3718,8 @@ void GUIFormSpecMenu::showTooltip(const std::wstring &text,
{
EnrichedString ntext(text);
ntext.setDefaultColor(color);
ntext.setBackground(bgcolor);
if (!ntext.hasBackground())
ntext.setBackground(bgcolor);
setStaticText(m_tooltip_element, ntext);