Fixed transparency of ListBox and ComboBox background texture

0.8
Bruno Van de Velde 2015-10-14 19:53:40 +02:00
parent c770530ad5
commit 14cb10bc11
2 changed files with 3 additions and 0 deletions

View File

@ -415,6 +415,7 @@ namespace tgui
m_listBox->setOpacity(m_opacity);
getRenderer()->m_backgroundTexture.setColor({255, 255, 255, static_cast<sf::Uint8>(m_opacity * 255)});
getRenderer()->m_textureArrowUpNormal.setColor({255, 255, 255, static_cast<sf::Uint8>(m_opacity * 255)});
getRenderer()->m_textureArrowDownNormal.setColor({255, 255, 255, static_cast<sf::Uint8>(m_opacity * 255)});
getRenderer()->m_textureArrowUpHover.setColor({255, 255, 255, static_cast<sf::Uint8>(m_opacity * 255)});

View File

@ -602,6 +602,8 @@ namespace tgui
{
Widget::setOpacity(opacity);
getRenderer()->m_backgroundTexture.setColor({255, 255, 255, static_cast<sf::Uint8>(m_opacity * 255)});
if (m_scroll != nullptr)
m_scroll->setOpacity(m_opacity);