Merge lp:~fboucault/unity8/notifications_icon_respect_ratio into lp:unity8

Proposed by Florian Boucault on 2015-05-01
Status: Merged
Approved by: Mirco Müller on 2015-05-20
Approved revision: 1757
Merged at revision: 1819
Proposed branch: lp:~fboucault/unity8/notifications_icon_respect_ratio
Merge into: lp:unity8
Diff against target: 24 lines (+4/-3)
1 file modified
qml/Notifications/ShapedIcon.qml (+4/-3)
To merge this branch: bzr merge lp:~fboucault/unity8/notifications_icon_respect_ratio
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2015-05-11
Mirco Müller (community) 2015-05-04 Approve on 2015-05-08
Michael Zanetti (community) 2015-05-01 Approve on 2015-05-06
Review via email: mp+258069@code.launchpad.net

Commit Message

Notifications: shaped icon was stretching the icon instead of respecting its aspect ratio and filling the whole shape.

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected? Please list.

no

 * Did you perform an exploratory manual test run of your code change and any related functionality?

yes

 * Did you make sure that your branch does not contain spurious tags?

yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

n/a

 * If you changed the UI, has there been a design review?

Yes, fixed a bug.

To post a comment you must log in.
Michael Zanetti (mzanetti) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?

yes

 * Did CI run pass? If not, please explain why.

unrelated AP failure.

 * Did you make sure that the branch does not contain spurious tags?

yes

review: Approve
Michael Zanetti (mzanetti) wrote :

Actually not top-approving until Mirco has given it a quick look. It looks good to me, but he might know about corner cases or something.

Mirco Müller (macslow) wrote :

This patch breaks the fix for LP #1378417 (as of unity8 revision 1439).

review: Needs Fixing
Mirco Müller (macslow) wrote :

Most - if not all - of our symbolic icons (e.g. battery-status etc) are non-square, thus we need to keep Image.PreserveAspectFit

1757. By Florian Boucault on 2015-05-08

When not shaped, do not fill and crop.

Florian Boucault (fboucault) wrote :

Thanks Mirco! Is that better now?

Mirco Müller (macslow) wrote :

Yup now it's fine. Approved.

review: Approve
Mirco Müller (macslow) wrote :

Jenkins-failures are unrelated to this branch.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Notifications/ShapedIcon.qml'
2--- qml/Notifications/ShapedIcon.qml 2014-11-07 15:32:48 +0000
3+++ qml/Notifications/ShapedIcon.qml 2015-05-08 14:09:40 +0000
4@@ -14,8 +14,8 @@
5 * along with this program. If not, see <http://www.gnu.org/licenses/>.
6 */
7
8-import QtQuick 2.0
9-import Ubuntu.Components 0.1
10+import QtQuick 2.3
11+import Ubuntu.Components 1.2
12
13 Item {
14 property string fileSource
15@@ -25,7 +25,8 @@
16 objectName: "shapedIcon"
17 anchors.fill: parent
18 visible: shaped
19- image: realImage
20+ source: realImage
21+ sourceFillMode: UbuntuShape.PreserveAspectCrop
22 }
23
24 Image {

Subscribers

People subscribed via source and target branches