maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Customize N900 Conversations (https://talk.maemo.org/showthread.php?t=36618)

Schturman 2010-02-13 15:12

Re: Customize N900 Conversations
 
I have another little problem with avatar borders in the SMS conversation... It's only on "Other" avatar...
See this picture:

http://i50.tinypic.com/7103u9.png

How I can fix this ?

I see the avatar block and it's look Ok (normal)

Code:

div.Avatar {
  width: 64px;
  display: inline-block;
  vertical-align: middle;
}

.MessageAvatar {
  width: 64px;
  height:64px;
  -moz-border-radius: 10px;
}

img.MessagePresence {
  vertical-align: middle;
  width: 16px;
  height: 16px;
}


agentsmith 2010-02-13 19:27

Re: Customize N900 Conversations
 
I tried to change my avatar and could not. I previously moved one to the html/ folder and it worked. Tried to copy the previous one that did work back and still no luck. Any suggestions?

b666m 2010-02-14 02:27

Re: Customize N900 Conversations
 
Quote:

Originally Posted by Schturman (Post 524742)
I have another little problem with avatar borders in the SMS conversation... It's only on "Other" avatar...
See this picture:

http://i50.tinypic.com/7103u9.png

How I can fix this ?

I see the avatar block and it's look Ok (normal)

Code:

div.Avatar {
  width: 64px;
  display: inline-block;
  vertical-align: middle;
}

.MessageAvatar {
  width: 64px;
  height:64px;
  -moz-border-radius: 10px;
}

img.MessagePresence {
  vertical-align: middle;
  width: 16px;
  height: 16px;
}


change width and height from 64px to 60px ^^
somehow resizing the image doesn't work in conversation-view...

SR90 2010-02-14 13:23

Re: Customize N900 Conversations
 
Quote:

Originally Posted by b666m (Post 525483)
change width and height from 64px to 60px ^^
somehow resizing the image doesn't work in conversation-view...

Hello , I have the same problem , How do I have to change the size ?

is it possible to customize the size on the n900 itself ? do I have to use xterminal ?

It would be nice if you could help me to fix this problem , cheers :D

b666m 2010-02-14 14:36

Re: Customize N900 Conversations
 
Quote:

Originally Posted by SR90 (Post 525931)
Hello , I have the same problem , How do I have to change the size ?

the files you have to edit are stored in /usr/share/rtcom-messaging-ui/html/

there you have to edit the *SMSConversation*.css
three ways of doing that:
1. SSH root connection to pc.
2. copy the files from there to your MyDocs, connect via mass storage to your pc, edit the file on your pc, copy it back and finally move it into the html-folder (you have to be root for doing that)
3. gain root in xterm. open the css-file in xterm with vi (if you know how to handle it ^^) or install leafpad and open it with it.

you have to change:
Code:

div.Avatar {
  width: 64px;
  display: inline-block;
  vertical-align: middle;
}

.MessageAvatar {
  width: 64px;
  height:64px;
  -moz-border-radius: 10px;
}

to:
Code:

div.Avatar {
  width: 60px;
  display: inline-block;
  vertical-align: middle;
}

.MessageAvatar {
  width: 60px;
  height:60px;
  -moz-border-radius: 10px;
}

for further instructions on how to copy files with root rights from one point to another point or on how to ssh into your phone, please use the search located at top right on this page. ^^

SR90 2010-02-14 16:06

Re: Customize N900 Conversations
 
thanks for the response b666m , I have leafpad installed , how exactly do I have to dig out the files /usr/share/rtcom-messaging-ui/html/ on n900 and change the size to 60 ?
I have already searched , couldn't find how to find the file using xterminal and leafpad :(
Cheers .

b666m 2010-02-14 16:10

Re: Customize N900 Conversations
 
open xterm:
1. type "sudo gainroot"
2. type "leafpad MessagingWidgetsSMSConversation.css"
3. then change the three values from 64 to 60px and save the changes.
4. open up any sms conversation, close it and open it again to reload the layout. :)

SR90 2010-02-14 16:20

Re: Customize N900 Conversations
 
b666m , When I type "leafpad MessagingWidgetsSMSConversation.css" , I get a white page with no values and typos , is it normal ?

Is it possible to make the avatars bigger than 60 ? like 80 or even 100 ?
it would be nice to have a bigger one and then change it to the style you have already created in this thread , Is it also possible to change the layout of the conversation just by using xterminal and leafpad ? :)

b666m 2010-02-14 16:27

Re: Customize N900 Conversations
 
Quote:

Originally Posted by SR90 (Post 526086)
b666m , When I type "leafpad MessagingWidgetsSMSConversation.css" , I get a white page with no values and typos , is it normal ?

oh sorry... where's my brain today?!
forgot that you aren't in the correct folder.
"leafpad /usr/share/rtcom-messaging-ui/html/MessagingWidgetsSMSConversation.css"

Quote:

Is it possible to make the avatars bigger than 60 ? like 80 or even 100 ?
should be possible. resizing is also used in the single view but it doesn't work in the conversations. don't know why. (the current code with 64px should do this resizing but as you can see it doesn't work at all)

Quote:

Is it also possible to change the layout of the conversation just by using xterminal and leafpad ? :)
of course. it's just simple file editing. but it's way more comfortable to use a neat editor on your pc with expression highlighting. :)

SR90 2010-02-14 16:42

Re: Customize N900 Conversations
 
You are my hero , worked perfectly :D
by the way my " -moz-border-radius: 10px;" code is 6px , does it matter/do I have to change it to 10 ?

I'm going to change the conversation layout soon , thanks a lot once again , great to have you on board :)


All times are GMT. The time now is 15:39.

vBulletin® Version 3.8.8