mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Custom colors in all media/history_view_ modules.
This commit is contained in:
@@ -366,7 +366,14 @@ void HistoryMessageReply::paint(
|
||||
auto to = style::rtlrect(x + st::msgReplyBarSkip, y + st::msgReplyPadding.top() + st::msgReplyBarPos.y(), st::msgReplyBarSize.height(), st::msgReplyBarSize.height(), w + 2 * x);
|
||||
auto previewWidth = image->width() / cIntRetinaFactor();
|
||||
auto previewHeight = image->height() / cIntRetinaFactor();
|
||||
auto preview = image->pixSingle(previewWidth, previewHeight, to.width(), to.height(), ImageRoundRadius::Small, RectPart::AllCorners, context.selected() ? &st->msgStickerOverlay() : nullptr);
|
||||
auto preview = image->pixSingle(
|
||||
previewWidth,
|
||||
previewHeight,
|
||||
to.width(),
|
||||
to.height(),
|
||||
ImageRoundRadius::Small,
|
||||
RectPart::AllCorners,
|
||||
context.selected() ? &st->msgStickerOverlay() : nullptr);
|
||||
p.drawPixmap(to.x(), to.y(), preview);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user