Merge lp:~renatofilho/address-book-app/fix-1511478 into lp:address-book-app

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 494
Merged at revision: 507
Proposed branch: lp:~renatofilho/address-book-app/fix-1511478
Merge into: lp:address-book-app
Prerequisite: lp:~renatofilho/address-book-app/fix-1469005
Diff against target: 14 lines (+2/-2)
1 file modified
src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailAvatarEditor.qml (+2/-2)
To merge this branch: bzr merge lp:~renatofilho/address-book-app/fix-1511478
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+276167@code.launchpad.net

This proposal supersedes a proposal from 2015-10-29.

Commit message

Avoid blurry avatar images while creating a new contact.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

I've tried the fix and it fixes the issue indeed, I'm not sure to understand the code though, shouldn't the avatar height/width be used in the case when the image is visible?

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

The image object switches btw the "+" icon and the avatar itself.

When set to the avatar image we can make it invisible because it will be used by UbuntuShape (check UbuntuShape.source for more info) when visible it will show "+" icon and we want the icon in 3x3 size, to fit to designer spec.

Revision history for this message
Sebastien Bacher (seb128) wrote :

oh right, that makes sense, thanks

review: Approve
495. By Renato Araujo Oliveira Filho

Trunk merged.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Are there any related MPs required for this MP to build/function as expected?
NO

Is your branch in sync with latest trunk?
YES

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
YES

Did you successfully run all tests found in your component's Test Plan on device or emulator?
YES

If you changed the UI, was the change specified/approved by design?
NO UI CHANGED

If you changed UI labels, did you update the pot file?
NO LABEL CHANGED

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?
NO PACKAGING CHANGED

496. By Renato Araujo Oliveira Filho

Trunk merged.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailAvatarEditor.qml'
2--- src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailAvatarEditor.qml 2015-10-28 19:42:30 +0000
3+++ src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailAvatarEditor.qml 2015-11-24 00:28:43 +0000
4@@ -88,8 +88,8 @@
5 width: units.gu(3)
6 visible: source == defaultAvatar
7 sourceSize {
8- width: units.gu(3)
9- height: units.gu(3)
10+ width: avatarImage.visible ? units.gu(3) : avatar.width
11+ height: avatarImage.visible ? units.gu(3) : avatar.height
12 }
13
14 // When updating the avatar using the content picker the temporary file returned

Subscribers

People subscribed via source and target branches