Merge lp:~tiagosh/messaging-app/fix-1227351 into lp:messaging-app

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 35
Merged at revision: 36
Proposed branch: lp:~tiagosh/messaging-app/fix-1227351
Merge into: lp:messaging-app
Diff against target: 38 lines (+17/-0)
2 files modified
src/qml/MainPage.qml (+9/-0)
src/qml/Messages.qml (+8/-0)
To merge this branch: bzr merge lp:~tiagosh/messaging-app/fix-1227351
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Gustavo Pichorim Boiko (community) Approve
Review via email: mp+186864@code.launchpad.net

Commit message

Add a visual feedback for selected messages/conversations.

Description of the change

Add a visual feedback for selected messages/conversations.

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
Gustavo Pichorim Boiko (boiko) wrote :

Maybe you should use the color orange as the one used in the address-book-app:
color: UbuntuColors.orange

Also, can you add a FIXME comment saying that this should be done automatically in UITK instead of doing on each and every app?

review: Needs Fixing
34. By Tiago Salem Herrmann

use UbuntuColors.orange for the background

35. By Tiago Salem Herrmann

add comment

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

Looks good now.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/qml/MainPage.qml'
2--- src/qml/MainPage.qml 2013-09-17 03:22:44 +0000
3+++ src/qml/MainPage.qml 2013-09-23 21:47:21 +0000
4@@ -86,6 +86,15 @@
5 selectionMode: threadList.isInSelectionMode
6 selected: threadList.isSelected(threadDelegate)
7 removable: !selectionMode
8+ // FIXME: the selected state should be handled by the UITK
9+ Rectangle {
10+ visible: selected
11+ color: UbuntuColors.orange
12+ opacity: 0.5
13+ anchors.fill: parent
14+ z: -1
15+ }
16+
17 onClicked: {
18 if (threadList.isInSelectionMode) {
19 if (!threadList.selectItem(threadDelegate)) {
20
21=== modified file 'src/qml/Messages.qml'
22--- src/qml/Messages.qml 2013-09-19 21:41:46 +0000
23+++ src/qml/Messages.qml 2013-09-23 21:47:21 +0000
24@@ -332,6 +332,14 @@
25 incoming: senderId != "self"
26 selected: messageList.isSelected(messageDelegate)
27 removable: !selectionMode
28+ // FIXME: the selected state should be handled by the UITK
29+ Rectangle {
30+ visible: selected
31+ color: UbuntuColors.orange
32+ opacity: 0.5
33+ anchors.fill: parent
34+ z: -1
35+ }
36 onClicked: {
37 if (messageList.isInSelectionMode) {
38 if (!messageList.selectItem(messageDelegate)) {

Subscribers

People subscribed via source and target branches