[mythtv-commits] mythtv commits
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Sat Nov 20 17:35:02 UTC 2004
----------------------------------------------------------------------------
Changes committed by jdonavan on Sat Nov 20 17:31:13 2004
Modified Files:
in mythtv/libs/libmyth:
xmlparse.cpp themedmenu.cpp
Log Message:
Implemented font inheritence.
When declaring a font in your xml files you can now specify an attribute called "base" and include the name of the font your new font is based on. This, when combined with the global font map allows for sweeping font adjustments to the entire theme at once.
When using a base font, you only need to provide data for the elments you wish to override.
Example font definitions:
<font name="basefont" face="Arial">
<color>#ffffff</color>
<dropcolor>#000000</dropcolor>
<size>17</size>
<size:small>14</size:small>
<size:big>20</size:big>
<shadow>2,2</shadow>
<bold>yes</bold>
</font>
<font name="title" base="basefont">
<color>#ffffdd</color>
<size>22</size>
<size:big>24</size:big>
<size:small>18</size:small>
</font>
<font name="subtitle" base="title">
<size>18</size>
<size:big>20</size:big>
<size:small>14</size:small>
</font>
----------------------------------------------------------------------------
More information about the mythtv-commits
mailing list