mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 {
|
QPixmap Manager::hiddenUserpicPlaceholder() const {
|
||||||
if (_hiddenUserpicPlaceholder.isNull()) {
|
if (_hiddenUserpicPlaceholder.isNull()) {
|
||||||
|
const auto ratio = style::DevicePixelRatio();
|
||||||
_hiddenUserpicPlaceholder = Ui::PixmapFromImage(
|
_hiddenUserpicPlaceholder = Ui::PixmapFromImage(
|
||||||
LogoNoMargin().scaled(
|
LogoNoMargin().scaled(
|
||||||
st::notifyPhotoSize,
|
st::notifyPhotoSize * ratio,
|
||||||
st::notifyPhotoSize,
|
st::notifyPhotoSize * ratio,
|
||||||
Qt::IgnoreAspectRatio,
|
Qt::IgnoreAspectRatio,
|
||||||
Qt::SmoothTransformation));
|
Qt::SmoothTransformation));
|
||||||
_hiddenUserpicPlaceholder.setDevicePixelRatio(cRetinaFactor());
|
_hiddenUserpicPlaceholder.setDevicePixelRatio(ratio);
|
||||||
}
|
}
|
||||||
return _hiddenUserpicPlaceholder;
|
return _hiddenUserpicPlaceholder;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue