2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Custom colors in history_view_document module.

This commit is contained in:
John Preston
2021-09-03 16:09:43 +03:00
parent 23e9e7b9f0
commit cbfe57c51d
23 changed files with 528 additions and 395 deletions

View File

@@ -1022,7 +1022,12 @@ void Document::paint(Painter &p, const QRect &clip, TextSelection selection, con
using namespace HistoryView;
const auto coverDrawn = _data->isSongWithCover()
&& DrawThumbnailAsSongCover(p, _dataMedia, inner, selected);
&& DrawThumbnailAsSongCover(
p,
st::songCoverOverlayFg,
_dataMedia,
inner,
selected);
if (!coverDrawn) {
if (selected) {
p.setBrush(st::msgFileInBgSelected);