mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 00:55:12 +00:00
no lag in changing normal to wide adaptive mode, files overview ext display improved, no inline bot progress while resolving username, version 0.9.20.dev
This commit is contained in:
@@ -764,10 +764,10 @@ LayoutOverviewDocument::LayoutOverviewDocument(DocumentData *document, HistoryIt
|
||||
_thumbw = 0;
|
||||
}
|
||||
|
||||
_extw = st::semiboldFont->width(_ext);
|
||||
if (_extw > st::overviewFileSize - st::msgFileExtPadding * 2) {
|
||||
_ext = st::semiboldFont->elided(_ext, st::overviewFileSize - st::msgFileExtPadding * 2, Qt::ElideMiddle);
|
||||
_extw = st::semiboldFont->width(_ext);
|
||||
_extw = st::overviewFileExtFont->width(_ext);
|
||||
if (_extw > st::overviewFileSize - st::overviewFileExtPadding * 2) {
|
||||
_ext = st::overviewFileExtFont->elided(_ext, st::overviewFileSize - st::overviewFileExtPadding * 2, Qt::ElideMiddle);
|
||||
_extw = st::overviewFileExtFont->width(_ext);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -872,9 +872,9 @@ void LayoutOverviewDocument::paint(Painter &p, const QRect &clip, uint32 selecti
|
||||
} else {
|
||||
p.fillRect(rthumb, documentColor(_colorIndex));
|
||||
if (!radial && loaded && !_ext.isEmpty()) {
|
||||
p.setFont(st::semiboldFont);
|
||||
p.setFont(st::overviewFileExtFont);
|
||||
p.setPen(st::white);
|
||||
p.drawText(rthumb.left() + (rthumb.width() - _extw) / 2, rthumb.top() + st::msgFileExtTop + st::semiboldFont->ascent, _ext);
|
||||
p.drawText(rthumb.left() + (rthumb.width() - _extw) / 2, rthumb.top() + st::overviewFileExtTop + st::overviewFileExtFont->ascent, _ext);
|
||||
}
|
||||
}
|
||||
if (selected) {
|
||||
|
Reference in New Issue
Block a user