mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Improved service messages layout.
This commit is contained in:
@@ -8525,7 +8525,7 @@ void HistoryWidget::paintEvent(QPaintEvent *e) {
|
||||
style::font font(st::msgServiceFont);
|
||||
int32 w = font->width(lang(lng_willbe_history)) + st::msgPadding.left() + st::msgPadding.right(), h = font->height + st::msgServicePadding.top() + st::msgServicePadding.bottom() + 2;
|
||||
QRect tr((width() - w) / 2, (height() - _field.height() - 2 * st::sendPadding - h) / 2, w, h);
|
||||
App::roundRect(p, tr, App::msgServiceBg(), ServiceCorners);
|
||||
HistoryLayout::ServiceMessagePainter::paintBubble(p, tr.x(), tr.y(), tr.width(), tr.height());
|
||||
|
||||
p.setPen(st::msgServiceColor->p);
|
||||
p.setFont(font->f);
|
||||
|
Reference in New Issue
Block a user