Commit 0bc3bfa02512d955a15e2c870729185788c7f0bc

  • avatar
  • Daniel Beames <dBsooner @dbt…nk.com>
  • Tue Oct 27 06:39:04 CET 2009
Removed messaging-personal-avatar-left-side-v2, updated v1 to be universal.
  
1Copyright (c) 2009 Elryon <elryon@hotmail.com>
2
3Permission is hereby granted, free of charge, to any person
4obtaining a copy of this software and associated documentation
5files (the "Software"), to deal in the Software without
6restriction, including without limitation the rights to use,
7copy, modify, merge, publish, distribute, sublicense, and/or sell
8copies of the Software, and to permit persons to whom the
9Software is furnished to do so, subject to the following
10conditions:
11
12The above copyright notice and this permission notice shall be
13included in all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22OTHER DEALINGS IN THE SOFTWARE.
  
1--- .orig/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
2+++ /usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
3@@ -1357,7 +1357,7 @@
4 if (ChatFlags.isOutgoing(msg.flags)) {
5 tmpClass.push("my-chat");
6 // Disabling MY avatar because we are not doing this for 1.0 2008-11-05
7- //msg.avatar = this.myAvatar || 'images/my-avatar.png';
8+ msg.avatar = this.myAvatar || '/media/internal/my-avatar.png';
9 } else {
10 tmpClass.push("their-chat");
11 msg.avatar = this.avatarHash[msg.fromAddress] || this.contactAvatar || "images/list-view-default-avatar.png";
12--- .orig/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
13+++ /usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
14@@ -645,7 +645,7 @@
15 width: 255px;
16 }
17 .my-chat .message-container {
18- width: 95%;
19+ width: 90%;
20 }
21 .chat-entry .chat-balloon {
22 min-height: 26px;
23@@ -659,7 +659,11 @@
24 font-size:14px;
25 }
26
27-.my-chat .chat-balloon-wrapper,
28+.my-chat .chat-balloon-wrapper {
29+ padding-left: 40px;
30+ font-size: 18px;
31+ word-wrap: break-word !important;
32+}
33 .their-chat .chat-balloon-wrapper {
34 padding: 1px 0;
35 font-size: 18px;
36@@ -674,8 +674,16 @@
37 }
38
39 /* Disabling MY avatar because we are not doing this for 1.0 2008-11-05*/
40-.my-chat .avatar-location,
41-.my-chat .avatar-overlay,
42+.my-chat .avatar-location {
43+left: 12px;
44+position: absolute;
45+margin: 13px 12px 0px 0px;
46+}
47+.my-chat .avatar-overlay {
48+left: 8px;
49+margin-top: 4px;
50+position: absolute;
51+}
52 .my-chat .avatar-container {
53 display: none;
54 width: 40px;
55@@ -677,9 +677,11 @@
56 .my-chat .avatar-location,
57 .my-chat .avatar-overlay,
58 .my-chat .avatar-container {
59- display: none;
60- width: 40px;
61- height: 40px;
62+display: inline-block;
63+}
64+.my-chat .avatar {
65+width: 40px;
66+height: 40px;
67 }
68
69 .message.status-success {
  
1--- .orig/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
2+++ /usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
3@@ -1347,7 +1347,7 @@
1diff --git a/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js b/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
2index 4c7cdbe..12193e9 100644
3--- a/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
4+++ b/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
5@@ -1347,7 +1347,7 @@ var ChatviewAssistant = Class.create({
46 if (ChatFlags.isOutgoing(msg.flags)) {
57 tmpClass.push("my-chat");
68 // Disabling MY avatar because we are not doing this for 1.0 2008-11-05
79- //msg.avatar = this.myAvatar || 'images/my-avatar.png';
8+ msg.avatar = this.myAvatar || 'images/my-avatar.png';
10+ msg.avatar = this.myAvatar || '/media/internal/my-avatar.png';
911 } else {
1012 tmpClass.push("their-chat");
1113 msg.avatar = this.avatarHash[msg.fromAddress] || this.contactAvatar || "images/list-view-default-avatar.png";
12--- .orig/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
13+++ /usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
14@@ -642,7 +642,7 @@
15 }
16
17 .their-chat .message-container {
18- width: 255px;
14diff --git a/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css b/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
15index 13251fe..68a2cfc 100644
16--- a/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
17+++ b/usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css
18@@ -650,6 +650,12 @@ img.avatar-overlay {
19 .chat-entry .chat-balloon {
20 min-height: 26px;
21 }
22+.their-chat .message-container {
1923+ width: 91%;
20 }
21 .my-chat .message-container {
22 width: 280px;
23@@ -645,7 +645,7 @@
24 width: 255px;
25 }
26 .my-chat .message-container {
27- width: 280px;
24+}
25+.my-chat .message-container {
2826+ width: 91%;
27+}
28 .chat-entry.my-chat.status-message {
29 font-style: italic;
2930 }
30 .chat-entry .chat-balloon {
31 min-height: 26px;
32@@ -659,7 +659,11 @@
31@@ -659,14 +665,18 @@ img.avatar-overlay {
3332 font-size:14px;
3433 }
3534
4141 .their-chat .chat-balloon-wrapper {
4242 padding: 1px 0;
4343 font-size: 18px;
44@@ -666,7 +666,7 @@
4544 word-wrap: break-word !important;
4645 }
4746 .their-chat .chat-balloon-wrapper {
4949 }
5050 .their-chat .avatar {
5151 width: 40px;
52@@ -674,8 +674,16 @@
52@@ -674,12 +684,22 @@ img.avatar-overlay {
5353 }
5454
5555 /* Disabling MY avatar because we are not doing this for 1.0 2008-11-05*/
6565+margin-top: 4px;
6666+position: absolute;
6767+}
68 .my-chat .avatar-container {
69 display: none;
70 width: 40px;
71@@ -677,9 +677,11 @@
72 .my-chat .avatar-location,
73 .my-chat .avatar-overlay,
7468 .my-chat .avatar-container {
7569- display: none;
7670- width: 40px;