Fixed an issue where Badges and emotes were not rendered transparently in disabled messages

I'm a master programmator

Fixes #300
This commit is contained in:
Rasmus Karlsson 2018-04-01 11:43:26 +02:00
parent fdea4f32f0
commit 87cf79440b

View file

@ -151,14 +151,14 @@ void MessageLayout::paint(QPainter &painter, int y, int messageIndex, Selection
painter.drawPixmap(0, y, *pixmap);
// painter.drawPixmap(0, y, this->container.width, this->container.getHeight(), *pixmap);
// draw gif emotes
this->container.paintAnimatedElements(painter, y);
// draw disabled
if (this->message->flags.HasFlag(Message::Disabled)) {
painter.fillRect(0, y, pixmap->width(), pixmap->height(), themeManager.messages.disabled);
}
// draw gif emotes
this->container.paintAnimatedElements(painter, y);
// draw last read message line
if (isLastReadMessage) {
QColor color = isWindowFocused ? themeManager.tabs.selected.backgrounds.regular.color()