updates and additions
[webos-internals:modifications.git] / messaging / messaging-history-chat-balloon-color-with-scrim.patch
1 diff --git a/usr/palm/applications/com.palm.app.messaging/app/controllers/listview-assistant.js b/usr/palm/applications/com.palm.app.messaging/app/controllers/listview-assistant.js
2 index b1b7b88..1e2d7db 100644
3 --- a/usr/palm/applications/com.palm.app.messaging/app/controllers/listview-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.messaging/app/controllers/listview-assistant.js
5 @@ -1175,8 +1175,11 @@ Mojo.Log.error("------!!!!!!----should not comment out historyListQuery:");
6         // Runs on all history list item models when received from the service, before giving them to the List widget.
7         preformatHistoryItem: function(item) {
8                 if (item.flags.outgoing) {
9 +                       item.css_class = "my-history-chat";
10                         item.messageActionImage = "images/outgoing.png";
11 +
12                 } else {
13 +                       item.css_class = "their-chat";
14                         item.messageActionImage = "images/incoming.png";
15                 }
16                 
17 diff --git a/usr/palm/applications/com.palm.app.messaging/app/views/listview/historyList-row.html b/usr/palm/applications/com.palm.app.messaging/app/views/listview/historyList-row.html
18 index 02c3aad..93b1537 100644
19 --- a/usr/palm/applications/com.palm.app.messaging/app/views/listview/historyList-row.html
20 +++ b/usr/palm/applications/com.palm.app.messaging/app/views/listview/historyList-row.html
21 @@ -1,4 +1,4 @@
22 -<div id="#{id}" class="palm-row chat-entry historyRow removable #{classNames}">
23 +<div id="#{id}" class="palm-row chat-entry historyRow removable #{css_class} #{classNames}">
24         <div class="palm-row-wrapper">
25                 <div class="chat-balloon" x-mojo-tap-highlight="momentary">
26                         <div class="chat-balloon-wrapper">
27 diff --git a/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css b/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
28 index a973ef5..6d90cc6 100644
29 --- a/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
30 +++ b/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
31 @@ -620,6 +620,10 @@
32  
33  /* Chat Balloons - History List tapped */
34  
35 +.chat-entry.my-history-chat .chat-balloon {
36 +               -webkit-border-image: url(/media/internal/.scrims/chat-balloon-history-left.png) 10 10 10 10 stretch stretch;
37 +}
38 +
39  .palm-row.chat-entry.historyRow .chat-balloon.selected {
40                 border-width: 10px;
41                 -webkit-border-image: url(../images/chatview/chat-balloon-left-selected.png) 10 10 10 10 stretch stretch;