Skip to content

Commit

Permalink
Enable antialiasing for reply button (#5491)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnsge authored Jul 7, 2024
1 parent 93fbcbb commit 8e29f75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- Minor: Added drop indicator line while dragging in tables. (#5256)
- Minor: Add channel points indication for new bits power-up redemptions. (#5471)
- Minor: Added `/warn <username> <reason>` command for mods. This prevents the user from chatting until they acknowledge the warning. (#5474)
- Minor: Improve appearance of reply button. (#5491)
- Minor: Introduce HTTP API for plugins. (#5383, #5492, #5494)
- Bugfix: Fixed tab move animation occasionally failing to start after closing a tab. (#5426)
- Bugfix: If a network request errors with 200 OK, Qt's error code is now reported instead of the HTTP status. (#5378)
Expand Down
2 changes: 2 additions & 0 deletions src/messages/layouts/MessageLayoutContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ void MessageLayoutContainer::paintElements(QPainter &painter,
painter.drawRect(element->getRect());
#endif

painter.save();
element->paint(painter, ctx.messageColors);
painter.restore();
}
}

Expand Down
1 change: 1 addition & 0 deletions src/messages/layouts/MessageLayoutElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ void ImageWithCircleBackgroundLayoutElement::paint(
if (pixmap && !this->image_->animated())
{
QRectF boxRect(this->getRect());
painter.setRenderHint(QPainter::Antialiasing);
painter.setPen(Qt::NoPen);
painter.setBrush(QBrush(this->color_, Qt::SolidPattern));
painter.drawEllipse(boxRect);
Expand Down

0 comments on commit 8e29f75

Please sign in to comment.