mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix userpic in a notification with hidden sender.
This commit is contained in:
parent
5f027d7c87
commit
762589b622
1 changed files with 4 additions and 3 deletions
|
@ -100,13 +100,14 @@ Manager::QueuedNotification::QueuedNotification(NotificationFields &&fields)
|
|||
|
||||
QPixmap Manager::hiddenUserpicPlaceholder() const {
|
||||
if (_hiddenUserpicPlaceholder.isNull()) {
|
||||
const auto ratio = style::DevicePixelRatio();
|
||||
_hiddenUserpicPlaceholder = Ui::PixmapFromImage(
|
||||
LogoNoMargin().scaled(
|
||||
st::notifyPhotoSize,
|
||||
st::notifyPhotoSize,
|
||||
st::notifyPhotoSize * ratio,
|
||||
st::notifyPhotoSize * ratio,
|
||||
Qt::IgnoreAspectRatio,
|
||||
Qt::SmoothTransformation));
|
||||
_hiddenUserpicPlaceholder.setDevicePixelRatio(cRetinaFactor());
|
||||
_hiddenUserpicPlaceholder.setDevicePixelRatio(ratio);
|
||||
}
|
||||
return _hiddenUserpicPlaceholder;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue