Notifications: shaped icon was stretching the icon instead of respecting its aspect ratio and filling the whole shape. Fixes: #1450229
Approved by: Mirco Müller, Michael Zanetti
commit00fb357d44ba026f49893a7a0469677c6a095ff1
authorFlorian Boucault <florian.boucault@canonical.com>
dateTue 16 Jun 2015, 15:12 (11 years ago)
parent0eb7df9d9c5ef4
qml/Notifications/ShapedIcon.qml+4−3
@@ -14,8 +14,8 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17−import QtQuick 2.0
18−import Ubuntu.Components 0.1
17+import QtQuick 2.3
18+import Ubuntu.Components 1.2
1919
2020Item {
2121 property string fileSource
@@ -25,7 +25,8 @@ Item {
2525 objectName: "shapedIcon"
2626 anchors.fill: parent
2727 visible: shaped
28− image: realImage
28+ source: realImage
29+ sourceFillMode: UbuntuShape.PreserveAspectCrop
2930 }
3031
3132 Image {