From 87cf79440b4a54b8312c6170a2c4d6c76da3fe4e Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 1 Apr 2018 11:43:26 +0200 Subject: [PATCH] Fixed an issue where Badges and emotes were not rendered transparently in disabled messages I'm a master programmator Fixes #300 --- src/messages/layouts/messagelayout.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/messages/layouts/messagelayout.cpp b/src/messages/layouts/messagelayout.cpp index dd348fd92..ee38aef12 100644 --- a/src/messages/layouts/messagelayout.cpp +++ b/src/messages/layouts/messagelayout.cpp @@ -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()