mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 16:58:07 +00:00
Show nice replies with quotes.
This commit is contained in:
@@ -40,14 +40,14 @@ void ReplyPreview::prepare(
|
||||
if (h <= 0) h = 1;
|
||||
auto thumbSize = (w > h)
|
||||
? QSize(
|
||||
w * st::msgReplyBarSize.height() / h,
|
||||
st::msgReplyBarSize.height())
|
||||
w * st::historyReplyPreview / h,
|
||||
st::historyReplyPreview)
|
||||
: QSize(
|
||||
st::msgReplyBarSize.height(),
|
||||
h * st::msgReplyBarSize.height() / w);
|
||||
st::historyReplyPreview,
|
||||
h * st::historyReplyPreview / w);
|
||||
thumbSize *= style::DevicePixelRatio();
|
||||
options |= Option::TransparentBackground;
|
||||
auto outerSize = st::msgReplyBarSize.height();
|
||||
auto outerSize = st::historyReplyPreview;
|
||||
auto original = spoiler
|
||||
? image->original().scaled(
|
||||
{ 40, 40 },
|
||||
|
||||
Reference in New Issue
Block a user