mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Added some round corners to emoji on userpic preview in builder.
This commit is contained in:
parent
6bb7263f7d
commit
5773a8021a
1 changed files with 4 additions and 1 deletions
|
@ -98,7 +98,7 @@ void PreviewPainter::paintBackground(QPainter &p, const QImage &image) {
|
|||
bool PreviewPainter::paintForeground(QPainter &p) {
|
||||
if (_player && _player->ready()) {
|
||||
// resolveIsColored();
|
||||
const auto frame = _player->frame(
|
||||
auto frame = _player->frame(
|
||||
Size(_emojiSize),
|
||||
(/*_isColored
|
||||
? st::profileVerifiedCheckBg->c
|
||||
|
@ -115,6 +115,9 @@ bool PreviewPainter::paintForeground(QPainter &p) {
|
|||
}
|
||||
}
|
||||
|
||||
frame.image = Images::Round(
|
||||
base::take(frame.image),
|
||||
ImageRoundRadius::Large);
|
||||
if (frame.image.width() == frame.image.height()) {
|
||||
p.drawImage(_frameRect, frame.image);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue