mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Store icons with a resolution of up to 128x128 px.
Follows what KeePass 2.29 will implement.
This commit is contained in:
@@ -347,9 +347,9 @@ void Metadata::addCustomIconScaled(const Uuid& uuid, const QImage& icon)
|
|||||||
{
|
{
|
||||||
QImage iconScaled;
|
QImage iconScaled;
|
||||||
|
|
||||||
// scale down to 64x64 if icon is larger
|
// scale down to 128x128 if icon is larger
|
||||||
if (icon.width() > 64 || icon.height() > 64) {
|
if (icon.width() > 128 || icon.height() > 128) {
|
||||||
iconScaled = icon.scaled(QSize(64, 64), Qt::KeepAspectRatio,
|
iconScaled = icon.scaled(QSize(128, 128), Qt::KeepAspectRatio,
|
||||||
Qt::SmoothTransformation);
|
Qt::SmoothTransformation);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user