Merge lp:~pkunal-parmar/ubuntu-calendar-app/WeekView-Devider into lp:ubuntu-calendar-app

Proposed by Kunal Parmar
Status: Merged
Approved by: Mihir Soni
Approved revision: 493
Merged at revision: 494
Proposed branch: lp:~pkunal-parmar/ubuntu-calendar-app/WeekView-Devider
Merge into: lp:ubuntu-calendar-app
Diff against target: 77 lines (+23/-5)
3 files modified
TimeLineBackground.qml (+4/-2)
TimeLineBase.qml (+2/-1)
TimeLineBaseComponent.qml (+17/-2)
To merge this branch: bzr merge lp:~pkunal-parmar/ubuntu-calendar-app/WeekView-Devider
Reviewer Review Type Date Requested Status
Mihir Soni Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+236986@code.launchpad.net

Commit message

Resolves Bug #1248127

Description of the change

Resolves Bug #1248127
Week view needs some vertical spearator between days

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Mihir Soni (mihirsoni) wrote :

It is not aligned properly on Nexus 4.

http://i.imgur.com/G6gOL5J.png

Also, can we make little transparent too ? it is looking too dark.

review: Needs Fixing
Revision history for this message
Mihir Soni (mihirsoni) wrote :

I meant, they are aligned properly with day header but we need to reduce the time text on first column.

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

I did not checked on phone. I will check and resolve issue

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

> Also, can we make little transparent too ? it is looking too dark.

Transparency does not seems to be a solution, I guess some lighter color will be more appropriate.

491. By Kunal Parmar

Review comment

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

Changed code to make time appear properly and made divider little lighter

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
492. By Kunal Parmar

Re-triggerig jenkins

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
493. By Kunal Parmar

merge from trunk

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 :

Awesome , it looks great !!
http://i.imgur.com/t6b4FML.png

Thanks for the MR kunal.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'TimeLineBackground.qml'
2--- TimeLineBackground.qml 2014-09-19 12:45:45 +0000
3+++ TimeLineBackground.qml 2014-10-09 09:57:50 +0000
4@@ -32,16 +32,18 @@
5
6 Label {
7 id: timeLabel
8+ width: (parent.width / 7) - units.gu(1)
9+ wrapMode: Text.WordWrap
10
11 text: {
12- var locale = Qt.locale()
13+ var locale = Qt.locale()
14 return new Date(0, 0, 0, index).toLocaleTimeString
15 (locale, locale.timeFormat(Locale.NarrowFormat))
16 }
17
18 anchors {
19 left: parent.left
20- leftMargin: units.gu(2)
21+ leftMargin: units.gu(0.5)
22 verticalCenter: parent.verticalCenter
23 }
24
25
26=== modified file 'TimeLineBase.qml'
27--- TimeLineBase.qml 2014-09-28 05:25:31 +0000
28+++ TimeLineBase.qml 2014-10-09 09:57:50 +0000
29@@ -109,7 +109,8 @@
30
31 function destroyAllChildren() {
32 for( var i = children.length - 1; i >= 0; --i ) {
33- if( children[i].objectName === "mouseArea" ) {
34+ if( children[i].objectName === "mouseArea" ||
35+ children[i].objectName === "weekdevider") {
36 continue;
37 }
38 children[i].visible = false;
39
40=== modified file 'TimeLineBaseComponent.qml'
41--- TimeLineBaseComponent.qml 2014-09-25 19:53:50 +0000
42+++ TimeLineBaseComponent.qml 2014-10-09 09:57:50 +0000
43@@ -126,10 +126,10 @@
44 anchors {
45 fill: parent
46 leftMargin: type == ViewType.ViewTypeWeek ? units.gu(0)
47- : units.gu(10)
48+ : units.gu(6)
49
50 rightMargin: type == ViewType.ViewTypeWeek ? units.gu(0)
51- : units.gu(4)
52+ : units.gu(3)
53 }
54
55 Repeater {
56@@ -150,6 +150,21 @@
57 delegate: comp
58 day: startDay.addDays(index)
59
60+ Loader{
61+ objectName: "weekdevider"
62+ height: parent.height
63+ width: units.gu(0.15)
64+ sourceComponent: type == ViewType.ViewTypeWeek ? weekDeviderComponent : undefined
65+ }
66+
67+ Component {
68+ id: weekDeviderComponent
69+ Rectangle{
70+ anchors.fill: parent
71+ color: "#e5e2e2"
72+ }
73+ }
74+
75 Connections{
76 target: mainModel
77 onStartPeriodChanged:{

Subscribers

People subscribed via source and target branches

to status/vote changes: