Add play icon to video mini previews.

This commit is contained in:
John Preston 2021-10-04 16:18:31 +04:00
parent d5f935b73d
commit 8cdd2f113f
5 changed files with 4 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

View File

@ -230,9 +230,9 @@ struct PreparedPreview {
{
QPainter p(&preview);
//st::overviewVideoPlay.paintInCenter(
// p,
// QRect(QPoint(), preview.size() / preview.devicePixelRatio()));
st::dialogsMiniPlay.paintInCenter(
p,
QRect(QPoint(), preview.size() / preview.devicePixelRatio()));
}
return preview;
}

View File

@ -300,3 +300,4 @@ dialogsMiniPreviewTop: 1px;
dialogsMiniPreview: 16px;
dialogsMiniPreviewSkip: 2px;
dialogsMiniPreviewRight: 3px;
dialogsMiniPlay: icon{{ "dialogs/dialogs_mini_play", videoPlayIconFg }};