Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

a quick skinning question
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: a quick skinning question
#3798
a quick skinning question 7 Years, 5 Months ago  
Hello! I've read through the skinning tutorial but can't find what I'm looking for there. I'm trying to make a minor change to the default skin but my knowledge of XML is very limited. I want to put a bullet point in front of items on the events list. In the eventlist.xml file I've made the following change:

<item>
<appearance element="bitmap.icon.small.check" showalways="1" />
<appearance padding="0,0,0,0" element="font.normal" color="255,255,255,255" effect="NORMAL" align="TOP-LEFT" />
</item>

That does the job for now, but I'd really like to have just a regular little bullet point instead of the check (the small ball bitmap is too big and off-center). Is there any easy way to do this?

Cheers.
prw404
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3812
Re:a quick skinning question 7 Years, 5 Months ago  
You shouldn't use two <appearance> elements inside the <item>. You can do it the same way as it is done in the todo list:

Code:


<item>
  <appearance padding="10,0,0,0" element="font.normal" color="255,255,255,255" effect="NORMAL" align="TOP-LEFT" />
  <image element="bitmap.todo.item" origin="TOP-LEFT" x="0" y="0" />
</item>

Rainy
Moderator
Posts: 6092
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#4174
Re:a quick skinning question 7 Years, 3 Months ago  
Hi

It seems I have to read and
learn more about this topic.

I always used e.x. color="#fff", or
color="#ffffff" (RGB ), but now I
have to write color="255,255,255,255"
instead

Benny

Post edited by: Benny Pedersen, at: 2007/08/29 11:33<br><br>Post edited by: Benny Pedersen, at: 2007/08/29 11:34
Benny Pedersen
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4175
Re:a quick skinning question 7 Years, 3 Months ago  
It is quite simple question.
HTML code RGB is 256 grades of each color in hexadecimal format where 10 is A, 11 is B, ..., 16 is F.
XML RGB code is 256 grades of each color in decimal format plus 256 grades of transparency (fourth number).
So black color in HTML is #000000, in XML is 000, 000, 000, 255. Pure red color in HTML is #FF0000, in XML is 255, 000, 000, 255, red semi-transparent is 255, 000, 000, 128. And so on. If you use Photoshop, you can see both codes in color palette for any color.
Alexander
Expert Boarder
Posts: 151
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Ukraine
The administrator has disabled public write access.
 
#4176
Re:a quick skinning question 7 Years, 3 Months ago  
Hi Alexander

Thanks for helping us newbies

So the fourth argument is for transparency...

The only update I did on my Horse Skin (now version 1.1) was also about transparency, but I solved that problem with layers instead, (code snipped: )
&lt;today&gt;
&lt;appearance layer=&quot;3&quot; element=&quot;bitmap.mark1&quot; ...
&lt;appearance layer=&quot;1&quot; element=&quot;font.bold&quot; ...
&lt;events&gt;
&lt;appearance layer=&quot;2&quot; element=&quot;bitmap.mark2&quot; ...
&lt;appearance layer=&quot;4&quot; element=&quot;font.bold&quot; ...

I moved the PNG's into Photoshop and used the same named layers as used in the XML file.
Turned on/off the two event layers for testing.

I couldn't get the &quot;prioritet&quot; code to work in XML, but I just leaved them something like/as shown in the tutorial...

Benny,
Btw: in the good old days, I wrote a HEX converter here:
2dos.homepage.dk/batutil/NEWS3.HTM#convert

Before I tell my friends about my new Horse Skin, I would like if someone would say something good or bad about that <br><br>Post edited by: Benny Pedersen, at: 2007/08/29 17:39
Benny Pedersen
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4177
Re:a quick skinning question 7 Years, 3 Months ago  
&lt;!--
Thoose not using Photoshop maybe would like this explanation.

Imagine a person X standing on top of all the layers, like this:
Code:


    X
    Text(white)... layer 4
Text(dark)........ layer 3
Circle(transp).... layer 2
    Square(dark).. layer 1
Photo(horse)...... layer 0



(the event layers (1 and 4) are thoose I prefixed with 4 spaces.

If she/X look to your left , she would see layer 3 above 2 above 0,
but to the right she would see all layers.
For the two with text (layer 3 and 4), layer 4 should overwrite layer 3.
Since the circle (layer 2) has some transparency, she would look through (X-rays).
Also layer 1 has some transparency.

So, instead of using photoshop for testing, instead I should have wrote the X thing as above.
Fact is that I now see a little bug , but thats not important for version 1. 1

Post edited by: Benny Pedersen, at: 2007/08/29 18:50
Fixed for version 1.11 Horse Skin (just udloaded).

Btw. Alexander, Why there so few in here? Already Senior Border... In some forums 3000 post or so, and one would become a very large newbie
hmm, below is two pictures of me, (don't make a skin of me)
www.photoshopelementsuser.com/forum/showpost.php?p=299226&amp;postcount=327<br><br>Post edited by: Benny Pedersen, at: 2007/08/30 02:42
Benny Pedersen
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop