21 New Patches.
[webos-internals:djcin7s-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 c301f25..668f2a3 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 @@ -829,8 +829,11 @@ var ListviewAssistant = Class.create(App.Scene, {
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 (ChatFlags.isOutgoing(item.flags)) {
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 355c0f4..18b4480 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 019deb5..0282a30 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 @@ -641,6 +641,10 @@ img.avatar-overlay {
32                 -webkit-border-image: url(../images/chatview/chat-balloon-right-error.png) 10 10 10 10 stretch stretch;
33  }
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;