Shoutbox

Display picture problem - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Skinning (/forumdisplay.php?fid=41)
+----- Thread: Display picture problem (/showthread.php?tid=86992)

Display picture problem by DennisMartijn on 11-01-2008 at 04:17 PM

My picture is a 60 by 60 one, for 48x48 sized dp. The picture has a black border of 6 pixels on each of the 4 sides.

How can I prevent this from happening?:
[Image: DisplayPictureProblem.png]
The size of the Border Picture is 48+12 x 48 + 12 = 60x60

The comments in this picture tell you what I would like to have. I hope someone knows the solution to this.

I am using Open Live, editted in such way there are no Options left to choose (size of the dp's in the contact list is set to Medium).

If you need a .txt file of any style or definition, then I will update it in this post.


RE: Display picture problem by ryxdp on 11-01-2008 at 10:07 PM

Could we see a screenshot perhaps?


RE: Display picture problem by DennisMartijn on 11-05-2008 at 01:54 PM

SOLVED:

To set a custom border, or to be more specific, a custom padding:
Open up the corresponding style file of the item you want to edit, and set the padding to the size of the border in the picture. or vary it, depending on your likings, if you have transparency for example.

code:
element[id=atom(idUserTileContainer)]
{
padding:rect(6,6,6,6);
}
element[id=atom(idUserTileContainer)][class="Medium"]
{
padding:rect(6,6,6,6);
}
element[id=atom(idUserTileContainer)][class="Small"]
{
padding:rect(4,4,4,4);
}

In this piece of code, I set the paddings for the large and medium sized display pictures to 6, and the paddings of the small display picture to 4. The paddings match the size of the borders coded in the corresponding images.
RE: Display picture problem by Basilis on 11-05-2008 at 02:05 PM

You must do that in all style files that contain display pictures though. I suggest you try finding a way to just make the image fit. It is all about the right dimensions.


RE: RE: Display picture problem by DennisMartijn on 11-05-2008 at 08:47 PM

quote:
Originally posted by Basilis
You must do that in all style files that contain display pictures though. I suggest you try finding a way to just make the image fit. It is all about the right dimensions.

yeah, I know. I thought I posted that along with the solved post? oh well, thanks for mentioning anyway ;)