Merge lp:~nik90/ubuntu-calendar-app/tweak-event-color into lp:ubuntu-calendar-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Mihir Soni
Approved revision: 464
Merged at revision: 458
Proposed branch: lp:~nik90/ubuntu-calendar-app/tweak-event-color
Merge into: lp:ubuntu-calendar-app
Diff against target: 104 lines (+25/-32)
1 file modified
EventBubble.qml (+25/-32)
To merge this branch: bzr merge lp:~nik90/ubuntu-calendar-app/tweak-event-color
Reviewer Review Type Date Requested Status
Mihir Soni Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+235137@code.launchpad.net

Commit message

Set the event background color to that of its calendar to make it more clear to the user. Also distinguished past events from future events.

Description of the change

This MP implements the following,
- Sets the event background color to that of its calendar to make it more clear to the user
- Distinguish past events from future events.

To post a comment you must log in.
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :
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 :

Hi,
Thanks for MR and it looks great, couple of observation :-

1. this might look cumbersome when there are overlapping events in past because of opacity [1].
2. As kunal pointed out, wouldn't opacity will cause performance issues..? [2]

[1]: http://i.imgur.com/nEIXY3y.png
[2]: https://bugs.launchpad.net/ubuntu-calendar-app/+bug/1369025

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

> Hi,
> Thanks for MR and it looks great, couple of observation :-
>
> 1. this might look cumbersome when there are overlapping events in past
> because of opacity [1].
> 2. As kunal pointed out, wouldn't opacity will cause performance issues..? [2]
>
>
> [1]: http://i.imgur.com/nEIXY3y.png
> [2]: https://bugs.launchpad.net/ubuntu-calendar-app/+bug/1369025

Good Point! I addressed them both by removing the opacity change and instead reducing the darkness of the background and striking out the event details of past events.

https://imgur.com/T0SBwVP

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

An even better screenshot -> https://imgur.com/zlXeX9l

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
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
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 :

lgtm!
Thanks Nekhelesh

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'EventBubble.qml'
2--- EventBubble.qml 2014-09-08 10:21:19 +0000
3+++ EventBubble.qml 2014-09-19 07:44:22 +0000
4@@ -15,7 +15,8 @@
5 * You should have received a copy of the GNU General Public License
6 * along with this program. If not, see <http://www.gnu.org/licenses/>.
7 */
8-import QtQuick 2.0
9+
10+import QtQuick 2.3
11 import Ubuntu.Components 1.1
12
13 Item{
14@@ -40,8 +41,6 @@
15 UbuntuShape{
16 id: bg
17 anchors.fill: parent
18- color: "white"
19- gradientColor: "#F5F5F5"
20 }
21
22 function resize() {
23@@ -126,10 +125,10 @@
24 timeLabel.text = event.displayLabel;
25 }
26
27- if(model) {
28- var collection = model.collection( event.collectionId );
29- calendarIndicator.color = collection.color
30- }
31+ if(model) {
32+ var collection = model.collection( event.collectionId );
33+ bg.color = collection.color
34+ }
35
36 layoutBubbleDetails();
37 }
38@@ -161,47 +160,41 @@
39 width: parent.width
40 height: detailsColumn.height
41
42- Column{
43+ Column {
44 id: detailsColumn
45
46 anchors {
47- top: parent.top; left: parent.left; right: parent.right; margins: units.gu(1)
48+ top: parent.top
49+ left: parent.left
50+ right: parent.right
51+ margins: units.gu(1)
52 }
53
54- Row{
55+ Label {
56+ id: timeLabel
57+ objectName: "timeLabel"
58+ color: "White"
59+ fontSize:"small"
60+ font.bold: true
61 width: parent.width
62+ }
63
64- Label{
65- id: timeLabel
66- objectName: "timeLabel"
67- fontSize:"small";
68- color:"gray"
69- width: parent.width - calendarIndicator.width
70- }
71- Rectangle{
72- id: calendarIndicator
73- width: units.gu(1)
74- radius: width/2
75- height: width
76- color: "#715772"
77- }
78- }
79- Label{
80+ Label {
81 id: titleLabel
82 objectName: "titleLabel"
83+ color: "White"
84 fontSize: "small"
85- color: "black"
86+ width: parent.width
87 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
88- width: parent.width
89 }
90
91- Label{
92+ Label {
93 id: descriptionLabel
94- fontSize: "small"
95- color:"gray"
96- wrapMode: Text.WrapAtWordBoundaryOrAnywhere
97+ color: "White"
98+ fontSize: "x-small"
99 width: parent.width
100 visible: type == wideType
101+ wrapMode: Text.WrapAtWordBoundaryOrAnywhere
102 }
103 }
104 }

Subscribers

People subscribed via source and target branches

to status/vote changes: