Fixed transparency of ListBox and ComboBox background texture
parent
c770530ad5
commit
14cb10bc11
|
@ -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)});
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue