Enable antialiasing for reply button (#5491)

This commit is contained in:
Daniel Sage 2024-07-07 02:42:49 -07:00 committed by GitHub
parent 93fbcbbe5f
commit 8e29f75308
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,7 @@
- Minor: Added drop indicator line while dragging in tables. (#5256) - Minor: Added drop indicator line while dragging in tables. (#5256)
- Minor: Add channel points indication for new bits power-up redemptions. (#5471) - 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: 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) - Minor: Introduce HTTP API for plugins. (#5383, #5492, #5494)
- Bugfix: Fixed tab move animation occasionally failing to start after closing a tab. (#5426) - 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) - Bugfix: If a network request errors with 200 OK, Qt's error code is now reported instead of the HTTP status. (#5378)

View file

@ -233,7 +233,9 @@ void MessageLayoutContainer::paintElements(QPainter &painter,
painter.drawRect(element->getRect()); painter.drawRect(element->getRect());
#endif #endif
painter.save();
element->paint(painter, ctx.messageColors); element->paint(painter, ctx.messageColors);
painter.restore();
} }
} }

View file

@ -392,6 +392,7 @@ void ImageWithCircleBackgroundLayoutElement::paint(
if (pixmap && !this->image_->animated()) if (pixmap && !this->image_->animated())
{ {
QRectF boxRect(this->getRect()); QRectF boxRect(this->getRect());
painter.setRenderHint(QPainter::Antialiasing);
painter.setPen(Qt::NoPen); painter.setPen(Qt::NoPen);
painter.setBrush(QBrush(this->color_, Qt::SolidPattern)); painter.setBrush(QBrush(this->color_, Qt::SolidPattern));
painter.drawEllipse(boxRect); painter.drawEllipse(boxRect);