Fixed some renderer properties that were not correctly set in Tabs

0.8
Bruno Van de Velde 2017-01-18 22:07:32 +01:00
parent 9f10fb2464
commit c94944bf10
1 changed files with 14 additions and 6 deletions

View File

@ -414,7 +414,7 @@ namespace tgui
}
else if (property == "selectedtextcolor")
{
m_selectedTextColorCached = getRenderer()->getSelectedBackgroundColor();
m_selectedTextColorCached = getRenderer()->getSelectedTextColor();
if (m_selectedTab >= 0)
m_tabTexts[m_selectedTab].setColor(m_selectedTextColorCached);
@ -432,6 +432,18 @@ namespace tgui
m_distanceToSideCached = getRenderer()->getDistanceToSide();
recalculateTabsWidth();
}
else if (property == "backgroundcolor")
{
m_backgroundColorCached = getRenderer()->getBackgroundColor();
}
else if (property == "selectedbackgroundcolor")
{
m_selectedBackgroundColorCached = getRenderer()->getSelectedBackgroundColor();
}
else if (property == "bordercolor")
{
m_borderColorCached = getRenderer()->getBorderColor();
}
else if (property == "opacity")
{
Widget::rendererChanged(property);
@ -455,12 +467,8 @@ namespace tgui
else
recalculateTabsWidth();
}
else if ((property != "backgroundcolor")
&& (property != "selectedbackgroundcolor")
&& (property != "bordercolor"))
{
else
Widget::rendererChanged(property);
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////