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?

Variable font size
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Variable font size
#13442
Variable font size 4 Years, 1 Month ago  
Hi!

(Sorry for my bad english I'm french...)

Can we atrribute varaible to a font size?

exemple:
skin.xml
Code:

...
<variables>
<variable name="monthSize" window="Digital Clock" default="28" description="Taille mois" />

 </variables>
...



elements.xml
Code:

...
  <elements>
<font id="hud.font.month" facename="Calibri" size="%monthSize%" uppercase="1" />
  </elements>
...



digital_clock.xml
Code:

<skin>
<window id="Digital Clock" w="300" default="1">
<time x="75" y="68" align="TOP-LEFT" element="hud.font.month" color="255,255,255,80" format="%B"/>
</window>
</skin>



The font size isn't link to the variable when I'm using rainlendar. This is normal?

Thanks to reply

Regards,
Xilam
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#13444
Re:Variable font size 4 Years, 1 Month ago  
I tried what you say, but it didn't work... that's because in skin.xml you write: window="Digital Clock" and elements.xml isn't Digital Clock.

But, if you directly set:

Code:


...
<variables>
<variable name="monthSize" default="28" description="Taille mois" />

 </variables>
...



It will work, but the variable monthSize will be global. If you have another window and you want a variable also named monthSize there will be a collision. But for only one window, there's no problem.

Maybe Rainy wanna make another kind of variable?
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#13445
Re: Variable font size 4 Years, 1 Month ago  
It should work if you use a global variable (i.e. don't define the window for the variable).
Rainy
Moderator
Posts: 6064
graph
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