Difference between revisions of "Menu-ui.xml"

From MythTV Official Wiki
Jump to: navigation, search
Line 9: Line 9:
  
 
font definitions:
 
font definitions:
<nowiki>   <font name="basefont" face="Arial">
+
 
 +
<pre><font name="basefont" face="Arial">
 
         <color>#FFFFFF</color>
 
         <color>#FFFFFF</color>
 
         <size>22</size>
 
         <size>22</size>
Line 16: Line 17:
 
     </font>
 
     </font>
  
     <font name="redfont" from="basefont"> <!-- define new font called 'redfont', inherited from 'basefont' - note 'from=' replaces old 'base=' format -->
+
     <font name="redfont" from="basefont"> <!-- define 'redfont' inheriting properties of 'basefont' N.B. 'from=' replaces 'base=' used before mythui -->
 
         <color>#FF0000</color>
 
         <color>#FF0000</color>
 
     </font>
 
     </font>
Line 22: Line 23:
 
     <font name="greenfont" from="basefont">
 
     <font name="greenfont" from="basefont">
 
         <color>#00FF00</color>
 
         <color>#00FF00</color>
     </font>
+
     </font></pre>
</nowiki>
 
 
An (optional) clock definition:
 
An (optional) clock definition:
  

Revision as of 09:18, 2 September 2008

menu-ui.xml is a new file proposed to be used to specify the organisation of mythtv's main menu screens

<myththeme>

It is comprised of: The mainmenu window.

   <window name="mainmenu">


font definitions:

<font name="basefont" face="Arial">
        <color>#FFFFFF</color>
        <size>22</size>
        <size:small>16</size:small>
        <size:big>50</size:big>
    </font>

    <font name="redfont" from="basefont"> <!-- define 'redfont' inheriting properties of 'basefont' N.B. 'from=' replaces 'base=' used before mythui -->
         <color>#FF0000</color>
    </font>
    
    <font name="greenfont" from="basefont">
         <color>#00FF00</color>
    </font>

An (optional) clock definition:

   <clock name="clock">
        <area>300,200,200,40</area>  <!-- clock area 200 px wide by 40 px high starting at 300,300 -->
        <font>basefont</font>
        <align>right</align>  <!-- optional attribute, defaults to  'left' -->
        <format>%DATE% %TIME%</format> <!-- valid values are:  -->
        <alpha>200</alpha> <!-- optional, sets text opacity.  Defaults to 255 -->
    </clock>