2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Improve empty group display.

This commit is contained in:
John Preston
2019-01-22 11:50:21 +04:00
parent 69b1f6c4e1
commit ebc2043055
8 changed files with 75 additions and 23 deletions

View File

@@ -6554,13 +6554,6 @@ void HistoryWidget::paintEvent(QPaintEvent *e) {
if (_pinnedBar && !_pinnedBar->cancel->isHidden()) {
drawPinnedBar(p);
}
if (_scroll->isHidden() && _history) {
p.setClipRect(_scroll->geometry());
_list->paintEmpty(
p,
width(),
height() - _field->height() - 2 * st::historySendPadding);
}
} else {
const auto w = st::msgServiceFont->width(lang(lng_willbe_history))
+ st::msgPadding.left()