Added some round corners to emoji on userpic preview in builder.
This commit is contained in:
parent
6bb7263f7d
commit
5773a8021a
|
@ -98,7 +98,7 @@ void PreviewPainter::paintBackground(QPainter &p, const QImage &image) {
|
||||||
bool PreviewPainter::paintForeground(QPainter &p) {
|
bool PreviewPainter::paintForeground(QPainter &p) {
|
||||||
if (_player && _player->ready()) {
|
if (_player && _player->ready()) {
|
||||||
// resolveIsColored();
|
// resolveIsColored();
|
||||||
const auto frame = _player->frame(
|
auto frame = _player->frame(
|
||||||
Size(_emojiSize),
|
Size(_emojiSize),
|
||||||
(/*_isColored
|
(/*_isColored
|
||||||
? st::profileVerifiedCheckBg->c
|
? 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()) {
|
if (frame.image.width() == frame.image.height()) {
|
||||||
p.drawImage(_frameRect, frame.image);
|
p.drawImage(_frameRect, frame.image);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue