Merge lp:~ravirdv/ubuntu-calculator-app/calculator_label_width_fix into lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk

Proposed by Ravi Vagadia
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 123
Merged at revision: 124
Proposed branch: lp:~ravirdv/ubuntu-calculator-app/calculator_label_width_fix
Merge into: lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk
Diff against target: 34 lines (+3/-3)
2 files modified
Simple/CalcLabel.qml (+2/-2)
Simple/Screen.qml (+1/-1)
To merge this branch: bzr merge lp:~ravirdv/ubuntu-calculator-app/calculator_label_width_fix
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Bhaumik Shukla (community) fix Approve
Mihir Soni Approve
Review via email: mp+178497@code.launchpad.net

Commit message

Fix for bug #1198868: Changed font size and operator label width

Description of the change

Fix for bug #1198868: Changed font size and operator label width. Please review, not tested on device.

To post a comment you must log in.
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Looks good :)
Thanks for committing :)

review: Approve
Revision history for this message
Bhaumik Shukla (boom-shukla) wrote :

its good. Appreciate this commit.

review: Approve (fix)
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

9 + width: units.gu(0.2)

As far as I remember, for things less than 0.5 grid units, you should use this instead:

width: units.dp(2)

I don't know if two would be the correct value there, you might need to try it out to check what the correct value would be.

review: Needs Fixing
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Thanks for your fix!

I have tried it on the device, but it still doesn't look like the visual designs.
The font size for the calculation is too small now, and the plus sign is not centered on the screen.

See this picture (taken from the app running on a Galaxy Nexus):
http://ubuntuone.com/2zXD7VWJrb2bWNinGpaD2P

review: Needs Fixing
Revision history for this message
Michael Hall (mhall119) wrote :

Looks a bit small for me too, here it is on a Nexus 4: http://ubuntuone.com/3uhvRhJ0LXNgpnlbPUzwcX

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michael Hall (mhall119) wrote :

Using x-large for the font size seems to be pretty close to the size it was before.

122. By Ravi Vagadia

Merged with calculator parent branch

123. By Ravi Vagadia

changed formulaLabel fontsize, operator label width and formulalabel width

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Looks good to me :)

Any user with device can test this branch ?

Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Looks good to me now too! Thanks for the fix!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Simple/CalcLabel.qml'
2--- Simple/CalcLabel.qml 2013-07-20 17:15:13 +0000
3+++ Simple/CalcLabel.qml 2013-08-07 06:59:28 +0000
4@@ -94,7 +94,7 @@
5
6 Label {
7 id: operatorLabel
8- width: units.gu(4)
9+ width: units.dp(2)
10 anchors.verticalCenter: parent.verticalCenter
11 font.pixelSize: FontUtils.sizeToPixels("medium")
12 color: "#FEFEFE"
13@@ -109,7 +109,7 @@
14 property bool isLast: root.isLast
15
16 objectName: "formulaLabel"
17- width: units.gu(25)
18+ width: parent.width / 2
19 color: numbersColor
20 anchors.bottom: parent.bottom
21 font.pixelSize: numbersHeight
22
23=== modified file 'Simple/Screen.qml'
24--- Simple/Screen.qml 2013-08-06 07:42:42 +0000
25+++ Simple/Screen.qml 2013-08-07 06:59:28 +0000
26@@ -236,7 +236,7 @@
27 labelText: _text
28 numbers: _number
29 operation: _operation == "=" ? "" : _operation
30- numbersHeight: units.gu(5)
31+ numbersHeight: FontUtils.sizeToPixels("x-large")
32 isLast: (isLastItem && index === repeater.model.count-1)
33
34 onLabelTextChanged: {

Subscribers

People subscribed via source and target branches