Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Nullstring
Old
(Last edited by Nullstring; 16th October 2011 at 11:21 PM.)
#1  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
Default [SKINNING]WM Standard SMS Messaging

Hello to all! I just want to contribute my work on WM Standard SMS Messaging client. The TMAIL.exe

There are two dedicated thread about skinning the standard messaging client:
1. [SKIN SMS][06 Feb 10 UPDATE!]Beautify your standard WM SMS Thread! [All Res][WM6.1+]
2. [1.10 update][Andynear style]DIY your own SMS chat UI

I participated in both threads but this one is different because you can try or preview your theme via your desktop browser: Chrome and Firefox (IE does not render the direct adjacent combinators correctly. CSS)
So what ever you see in Chrome and FF, is the same thing in WM device, but this is tested only on WM6.5.5 mobile and WM6.5 (emulator)

before testing your theme on your device, make sure to:
1. Install SdkCert.cab
2. Enable Threaded Messages
3. Disable HTC Messaging (if your ROM has it)
links credit to Astronout
4. Make sure to back these files before overwriting it: thread_sms.htm and iframe_style.css these are both located in \Windows directory
5. Terminate TMAIL.EXE first before deployment. You can use Dotfred's Task Manager or Quick Menu (my favorite)

Here are the previews


Copying the files for actual testing in your device
You can use my DropToWindows application. This application makes it easier for you to copy files in \Windows directory.

Important files to be copied
mainly iframe_style.css and the Images (if there is)
If you made a theme and made some modifications in thread_sms.htm and thread_style.css make sure to tell us about it too so we know what to copy

Download my workspace now

This file: Default.htm
has debug.css in it, which contains some overrides to have borders in the elements.

Notes when creating your own theme
If you're designing for QVGA, VGA, WVGA, make sure that your images are for 240x320!! TMAIL.EXE is responsible for resizing the images for different resolutions!

some important formulas: p = pixel
(VGA, WVGA)192dpi to (QVGA, SVGA)96dpi
(p * 96dpi) / 192dpi

(QVGA, SVGA)96dpi to (VGA, WVGA)192dpi
(p * 192dpi) / 96dpi

some important notes here

File paths in your CSS
make sure the image path before deploying to your device is file://\windows\ or else you won't see any images
e.g.
background-image: url(file://\windows\image_name.gif);
background: color url(file://\windows\image_name.gif) top left repeat;

Quote:
thanks for this past downloads
SMS.7z - [Click for QR Code] (116.1 KB, 71 views)
Attached Thumbnails
Click image for larger version

Name:	ss_standard.jpg
Views:	584
Size:	28.6 KB
ID:	749471   Click image for larger version

Name:	ss_andynear.jpg
Views:	560
Size:	34.9 KB
ID:	749472   Click image for larger version

Name:	ss_preview.jpg
Views:	4087
Size:	27.6 KB
ID:	749473   Click image for larger version

Name:	ss_emulator.jpg
Views:	546
Size:	33.1 KB
ID:	749489   Click image for larger version

Name:	ss_standard-2.jpg
Views:	4077
Size:	64.9 KB
ID:	751901  

Attached Files
File Type: 7z SMS.7z - [Click for QR Code] (362.2 KB, 910 views)


Gambit Mobile Applications for Windows Phone 7

-


The Following 4 Users Say Thank You to Nullstring For This Useful Post: [ Click to Expand ]
 
Nullstring
Old
(Last edited by Nullstring; 18th October 2011 at 03:35 AM.)
#2  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
- post removed -
 
Nullstring
Old
(Last edited by Nullstring; 16th October 2011 at 10:36 PM.)
#3  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
Why I made this? Because I found my self wasting my minute or two of my life terminating that TMAIL.EXE, Copying files in \Windows directory, waiting to load SMS client, and tapping on a conversation just to preview my small changes in the CSS. That's just it

-------------------------------------------------

THEMES!!!

 
Nullstring
Old
(Last edited by Nullstring; 16th October 2011 at 10:44 PM.)
#4  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
OBSOLETE PATCH. DO NOT USE
just keeping it for the record

HTML Code:
<html>
	<head>
		<link rel="stylesheet" href="thread_style.css" type="text/css" />
		<!-- link rel="stylesheet" href="debug.css" type="text/css" / -->
		<link rel="stylesheet" href="iframe_style.css" type="text/css" />
		<style>
			.c_title {
				font-weight: bold;
				font-size: 20px;
				padding: 5px;
				background-color: #e5e5e5;
			}
			
			.c_screen {
				
			}
		</style>
	</head>
	<body>
		<div class="c_screen" style="float: left">
			<div class="c_title">Portrait View</div>
			<div class="thread" style="width:240px !important;">
				<div class="title">
					Conversation with <a href="#" class="title">Jayson Ragasa</a>
				</div>
				<img src="sms_icon_out.bmp" class="state" align="top" /><a href="#" class="in">Jayson Ragasa</a><span span="spempty"> </span><span class="spin in">10/13/2011, 08:08PM</span>
				<div class="read">
					this is a very very long text! this is a very very long text! this is a very very long text! this is a very very long text! this is a very very long text!
				</div>
				<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:09PM</span>
				<div class="read">
					yes a very long reply
				</div>
				<img src="sms_icon_out.bmp" class="state" align="top" /><a href="#" class="in">Jayson Ragasa</a><span class="spempty"></span><span class="spin in">10/13/2011, 08:10PM</span>
				<div class="unread">
					an unread message!
				</div>
				<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:11PM</span>
				<div class="unread">
					Message waiting to be sent
				</div>
				<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:12PM</span>
				<div class="read">
					Not sent message
					<div><a href="#" class="retry">Message was not sent. Try again?</a></div>
				</div>
			</div>
		</div>
		<div style="float: left; border: 2px solid black; height: 550px;"></div>
		<div class="c_screen" style="float: left">
			<div class="c_title">Landscape View</div>
			<div class="thread" style="width:320px !important;">
				<div class="title">
					Conversation with <a href="#" class="title">Jayson Ragasa</a>
				</div>
				<img src="sms_icon_out.bmp" class="state" align="top" /><a href="#" class="in">Jayson Ragasa</a><span span="spempty"> </span><span class="spin in">10/13/2011, 08:08PM</span>
				<div class="read">
					this is a very very long text! this is a very very long text! this is a very very long text! this is a very very long text! this is a very very long text!
				</div>
				<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:09PM</span>
				<div class="read">
					yes a very long reply
				</div>
				<img src="sms_icon_out.bmp" class="state" align="top" /><a href="#" class="in">Jayson Ragasa</a><span class="spempty"></span><span class="spin in">10/13/2011, 08:10PM</span>
				<div class="unread">
					an unread message!
				</div>
				<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:11PM</span>
				<div class="unread">
					Message waiting to be sent
				</div>
				<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:12PM</span>
				<div class="read">
					Not sent message
					<div><a href="#" class="retry">Message was not sent. Try again?</a></div>
				</div>
			</div>
		</div>
	</body>
</html>
 
Nullstring
Old
(Last edited by Nullstring; 16th October 2011 at 11:00 PM.)
#5  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
OBSOLETE PATCH. DO NOT USE
just keeping it for the record

HTML Code:
<html>
	<head>
		<link rel="stylesheet" href="thread_style.css" type="text/css" />
		<!-- link rel="stylesheet" href="debug.css" type="text/css" / -->
		<link rel="stylesheet" href="iframe_style.css" type="text/css" />
		<style>
			.c_title {
				font-weight: bold;
				font-size: 20px;
				padding: 5px;
				background-color: #e5e5e5;
			}
			
			.c_screen {
				
			}
			
			.c_msgsel {
				background-color: #d6ebff;
			}
		</style>
		<script>
			function ondown(t) {
				t.style.backgroundColor = '#d6ebff';
			}
			
			function onout(t) {
				t.style.backgroundColor = 'white';
			}
		</script>
	</head>
	<body>
		<div class="c_screen" style="float: left">
			<div class="c_title">Portrait View</div>
			<div class="thread" style="width:240px !important;">
				<div class="title">
					Conversation with <a href="#" class="title">Jayson Ragasa</a>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_out.bmp" class="state" align="top" /><a href="#" class="in">Jayson Ragasa</a><span span="spempty"> </span><span class="spin in">10/13/2011, 08:08PM</span>
					<div class="read">
						this is a very very long text! this is a very very long text! this is a very very long text! this is a very very long text! this is a very very long text!
					</div>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:09PM</span>
					<div class="read">
						yes a very long reply
					</div>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_out.bmp" class="state" align="top" /><a href="#" class="in">Jayson Ragasa</a><span class="spempty"> </span><span class="spin in">10/13/2011, 08:10PM</span>
					<div class="unread">
						an unread message!
					</div>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:11PM</span>
					<div class="unread">
						Message waiting to be sent
					</div>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:12PM</span>
					<div class="read">
						Not sent message
						<div><a href="#" class="retry">Message was not sent. Try again?</a></div>
					</div>
				</div>
			</div>
		</div>
		<div style="float: left; border: 2px solid black; height: 550px;"></div>
		<div class="c_screen" style="float: left">
			<div class="c_title">Landscape View</div>
			<div class="thread" style="width:320px !important;">
				<div class="title">
					Conversation with <a href="#" class="title">Jayson Ragasa</a>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_out.bmp" class="state" align="top" /><a href="#" class="in">Jayson Ragasa</a><span span="spempty"> </span><span class="spin in">10/13/2011, 08:08PM</span>
					<div class="read">
						this is a very very long text! this is a very very long text! this is a very very long text! this is a very very long text! this is a very very long text!
					</div>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:09PM</span>
					<div class="read">
						yes a very long reply
					</div>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_out.bmp" class="state" align="top" /><a href="#" class="in">Jayson Ragasa</a><span class="spempty"> </span><span class="spin in">10/13/2011, 08:10PM</span>
					<div class="unread">
						an unread message!
					</div>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:11PM</span>
					<div class="unread">
						Message waiting to be sent
					</div>
				</div>
				<div onmouseover="ondown(this);" onmouseout="onout(this)">
					<img src="sms_icon_in.bmp" class="state" align="top" /><a href="#" class="out">Me</a><span class="spempty"> </span><span class="spout out">10/13/2011, 08:12PM</span>
					<div class="read">
						Not sent message
						<div><a href="#" class="retry">Message was not sent. Try again?</a></div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
 
Nullstring
Old
(Last edited by Nullstring; 15th October 2011 at 07:15 AM.)
#6  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
Default Windows Phone 7 theme (DOWNLOAD v1.2!!)

Here's my Windows Phone 7 theme



download file below
files needed:
1. All the *.png images
2. iframe_style.css
3. thread_style.css

KEEP IN MIND!! - Don't forget to change the file paths in CSS
background-image: url('sms_in_bubble_top.png');
to
background-image: url('file://\Windows\sms_in_bubble_top.png');

--
remember when making a theme, always consider the selected msg. that's so important!!!


download v1.2 fixed the outgoing top position and width and removed the white border.
Attached Thumbnails
Click image for larger version

Name:	wp7.jpg
Views:	2243
Size:	51.1 KB
ID:	750290   Click image for larger version

Name:	wp7_device.jpg
Views:	3534
Size:	28.4 KB
ID:	750291   Click image for larger version

Name:	wp7_device_2.jpg
Views:	3574
Size:	35.6 KB
ID:	750372  
Attached Files
File Type: 7z Windows Phone 7 theme.7z - [Click for QR Code] (3.3 KB, 51 views)
File Type: 7z Windows Phone 7 theme v1.2.7z - [Click for QR Code] (3.4 KB, 207 views)
The Following User Says Thank You to Nullstring For This Useful Post: [ Click to Expand ]
 
Nullstring
Old
#7  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
Unhappy HTC Amaze 4G theme (help me on CSS)

this is my HTC Amaze 4G theme which I've been fixing for 2 days now

I can't get those outgoing text to right position!! I can't use float because it will break the selection.



download my workspace

if you want this fix portrait mode


download this
Attached Thumbnails
Click image for larger version

Name:	ss_amaze_test.jpg
Views:	3564
Size:	49.1 KB
ID:	750299   Click image for larger version

Name:	ss_amaze.jpg
Views:	3600
Size:	48.8 KB
ID:	750306  
Attached Files
File Type: 7z HTC Amaze theme 2.7z - [Click for QR Code] (12.4 KB, 62 views)
File Type: 7z HTC Amaze theme 2 p.7z - [Click for QR Code] (12.4 KB, 104 views)
 
waraney
Old
#8  
waraney's Avatar
Senior Member
Thanks Meter 7
Posts: 127
Join Date: Jul 2009
Great work Nullstring.. i want to try the WP7 theme..

but can you more explain about this?..
Quote:
Originally Posted by Nullstring View Post
KEEP IN MIND!! - Don't forget to change the file paths in CSS
background-image: url('sms_in_bubble_top.png');
to
background-image: url('file://\Windows\sms_in_bubble_top.png');
Quote:
Originally Posted by Nullstring View Post
--
remember when making a theme, always consider the selected msg. that's so important!!!
The Following User Says Thank You to waraney For This Useful Post: [ Click to Expand ]
 
Nullstring
Old
(Last edited by Nullstring; 15th October 2011 at 08:06 PM.)
#9  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
Quote:
Originally Posted by waraney View Post
Great work Nullstring.. i want to try the WP7 theme..

but can you more explain about this?..
Quote:
KEEP IN MIND!! - Don't forget to change the file paths in CSS
background-image: url('sms_in_bubble_top.png');
to
background-image: url('file://\Windows\sms_in_bubble_top.png');
the difference between those two are:
If you're viewing the theme via your desktop browser, it's not necessary to include the path of the .png file since the .png and .css file are located in the same directory.

and the second one, if we're deploying. We need to include this path file://\Windows\ so it knows where the .png file is located. Yes, we are copying the .css file in \Windows directory which means the .css and the .png file is in the same directory, but am not sure what's going on in TMAIL.exe why it cannot see that file. So that is like a work arond.

In my WP7 theme, there are 6 css selectors that has background-image style. So if you want to view that in your WM device, include that path "file://\Windows\" before the .png file first so you can see the images.

Quote:
remember when making a theme, always consider the selected msg. that's so important!!!
Notice the default WM standard messaging layout/theme (the plain one)? notice you can select the message and it has a light background color (mine was light blue, am not sure how I call it). For example, I want to delete a specific message in a conversation thread, I know what will be deleted because it was selected.

notice the little blue box on the right side? that's not right, because I selected the 2nd message and look where the selection background is ..


So make sure when making a theme, the selection background is aligned properly in the selected message, so the user still know what message has to be deleted in case he want's to delete, or forward, or whatever his options.

---

sorry if you guys where confused about it
The Following User Says Thank You to Nullstring For This Useful Post: [ Click to Expand ]
 
Nullstring
Old
(Last edited by Nullstring; 17th October 2011 at 12:33 AM.)
#10  
Nullstring's Avatar
Recognized Developer - OP
Thanks Meter 233
Posts: 1,163
Join Date: Jul 2009
Location: Baguio

 
DONATE TO ME
Default Windows Phone 7 2.0

so here's WP7 theme version 2.0. Sorry guys, I cannot get rid of the black border on ComposeSubject field. It's an object (not an object element) and am not sure what it is. If you managed to get rid of it, please share

this is using custom thread_sms.htm I just added <div class="sms_box_bottom">&nbsp;</div> anyway after </Inbox:ComposeSubject>

Attached Thumbnails
Click image for larger version

Name:	wp7-2.jpg
Views:	3965
Size:	40.4 KB
ID:	751878   Click image for larger version

Name:	wp7_device 2.jpg
Views:	3947
Size:	26.2 KB
ID:	751879   Click image for larger version

Name:	wp7_device landscape 2.jpg
Views:	3430
Size:	28.4 KB
ID:	751880  
Attached Files
File Type: 7z Windows Phone 7 theme 2.7z - [Click for QR Code] (4.2 KB, 161 views)

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...