From MythTV Official Wiki
Revision as of 12:34, 2 September 2008 by Juski (talk | contribs)

Jump to: navigation, search

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


It is comprised of: The mainmenu window.

   <window name="mainmenu">

font definitions:

<font name="basefont" face="Arial">

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

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 -->
        <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 -->

Definition of menu page titles:

<statetype name="titles">
    <position>20,20</position> <!-- position at 20 px from the left, 20px from the top of screen -->
    <state name="TV">
        <imagetype name="TV">
    <state name="TVSETUP" from="TV" /> <!-- inherit from 'TV' state -->

Note that the states do not have to contain merely images, they could just as easily be defined as follows:

<state name="TV">
    <textarea name="TV">
        <alpha>127</alpha> <!-- set to half transparent -->
        <value>TV</value> <!-- the text to be displayed -->

or, possibly a combination of text and images (not described here)