better way to solve yesterday font problem, small visual avatar rendering fix

This commit is contained in:
Blue 2023-01-12 20:56:01 +03:00
parent 15fb4bbd62
commit d4bf7e599a
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
9 changed files with 62 additions and 56 deletions

View file

@ -371,7 +371,7 @@ void Conversation::setAvatar(const QString& path)
if (path.size() == 0) {
pixmap = Shared::icon("user", true).pixmap(avatarSize);
} else {
pixmap = QPixmap(path).scaled(avatarSize);
pixmap = QPixmap(path).scaled(avatarSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
}