new and updated
[webos-internals:imagineer1981s-modifications.git] / messaging / messaging-history-chat-balloon-color-with-scrim-v2.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..66ef44a 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,14 @@ 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 if (!(ChatFlags.isRead(item.flags))) {
13 +                       item.css_class = "new-chat";
14 +                       item.messageActionImage = "images/incoming.png";
15                 } else {
16 +                       item.css_class = "their-chat";
17                         item.messageActionImage = "images/incoming.png";
18                 }
19                 
20 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
21 index 355c0f4..18b4480 100644
22 --- a/usr/palm/applications/com.palm.app.messaging/app/views/listview/historyList-row.html
23 +++ b/usr/palm/applications/com.palm.app.messaging/app/views/listview/historyList-row.html
24 @@ -1,4 +1,4 @@
25 -<div id="#{id}" class="palm-row chat-entry historyRow removable #{classNames}">
26 +<div id="#{id}" class="palm-row chat-entry historyRow removable #{css_class} #{classNames}">
27         <div class="palm-row-wrapper">
28                 <div class="chat-balloon" x-mojo-tap-highlight="momentary">
29                         <div class="chat-balloon-wrapper">
30 diff --git a/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css b/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
31 index 019deb5..b2fe6b6 100644
32 --- a/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
33 +++ b/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
34 @@ -629,6 +629,10 @@ img.avatar-overlay {
35                 -webkit-border-image: url(../images/chatview/chat-balloon-left-error.png) 10 10 10 10 stretch stretch;
36  }
37  
38 +.chat-entry.new-chat .chat-balloon {
39 +               -webkit-border-image: url(/media/internal/.scrims/chat-balloon-left-new.png) 10 10 10 10 stretch stretch;
40 +}
41 +
42  .chat-entry.my-chat .chat-balloon {
43                 -webkit-border-image: url(../images/chatview/chat-balloon-right.png) 10 10 10 10 stretch stretch;
44  }
45 @@ -641,6 +645,10 @@ img.avatar-overlay {
46                 -webkit-border-image: url(../images/chatview/chat-balloon-right-error.png) 10 10 10 10 stretch stretch;
47  }
48  
49 +.chat-entry.my-history-chat .chat-balloon {
50 +               -webkit-border-image: url(/media/internal/.scrims/chat-balloon-history-left.png) 10 10 10 10 stretch stretch;
51 +}
52 +
53  .palm-row.chat-entry.historyRow .chat-balloon.selected {
54                 border-width: 10px;
55                 -webkit-border-image: url(../images/chatview/chat-balloon-left-selected.png) 10 10 10 10 stretch stretch;