diff --git a/src/controls/Icon.qml b/src/controls/Icon.qml --- a/src/controls/Icon.qml +++ b/src/controls/Icon.qml @@ -38,6 +38,7 @@ source: root.source != "" ? (root.source.indexOf(".") === -1 ? "./icons/" + root.source + ".svg" : root.source) : root.source sourceSize.width: root.width sourceSize.height: root.height + fillMode: Image.PreserveAspectCrop } ColorOverlay { diff --git a/src/desktopicon.cpp b/src/desktopicon.cpp --- a/src/desktopicon.cpp +++ b/src/desktopicon.cpp @@ -276,7 +276,7 @@ img.fill(Qt::transparent); } if (img.size() != size){ - img = img.scaled(size, Qt::IgnoreAspectRatio, m_smooth ? Qt::SmoothTransformation : Qt::FastTransformation ); + img = img.scaled(size, Qt::KeepAspectRatioByExpanding, m_smooth ? Qt::SmoothTransformation : Qt::FastTransformation ); } m_changed = false;