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); QPainter p(&preview);
//st::overviewVideoPlay.paintInCenter( st::dialogsMiniPlay.paintInCenter(
// p, p,
// QRect(QPoint(), preview.size() / preview.devicePixelRatio())); QRect(QPoint(), preview.size() / preview.devicePixelRatio()));
} }
return preview; return preview;
} }

View file

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