<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE mythuitheme SYSTEM "http://www.mythtv.org/schema/mythuitheme.dtd">
<mythuitheme>

    <!-- Base Fonts -->
    <fontdef name="extralarge" face="DejaVu Sans">
        <color>#FFFFFF</color>
        <pixelsize>27</pixelsize>
        <weight>bold</weight>
    </fontdef>

    <fontdef name="large" face="DejaVu Sans">
        <color>#FFFFFF</color>
        <pixelsize>25</pixelsize>
    </fontdef>

    <fontdef name="medium" face="DejaVu Sans">
        <color>#FFFFFF</color>
        <pixelsize>22</pixelsize>
    </fontdef>

    <fontdef name="small" face="DejaVu Sans">
        <color>#FFFFFF</color>
        <pixelsize>19</pixelsize>
    </fontdef>

    <!-- Derived Fonts -->
    <fontdef name="extralargebold" from="extralarge">
        <weight>bold</weight>
    </fontdef>

    <fontdef name="extralargeboldgrey" from="extralargebold">
        <color>#CCCCCC</color>
    </fontdef>

    <fontdef name="largelightgrey" from="large">
        <color>#CCCCCC</color>
    </fontdef>

    <fontdef name="mediumbold" from="medium">
        <weight>bold</weight>
    </fontdef>

    <fontdef name="mediumlightgrey" from="medium">
        <color>#CCCCCC</color>
    </fontdef>

    <fontdef name="mediumgrey" from="medium">
        <color>#AAAAAA</color>
    </fontdef>

    <fontdef name="smalllightgrey" from="small">
        <color>#CCCCCC</color>
    </fontdef>

    <fontdef name="smallgrey" from="small">
        <color>#AAAAAA</color>
    </fontdef>

    <fontdef name="smallblack" from="small">
        <color>#000000</color>
    </fontdef>

    <fontdef name="smallgreen" from="small">
        <color>#3EAE09</color>
    </fontdef>

    <fontdef name="smallred" from="small">
        <color>#D40101</color>
    </fontdef>

    <fontdef name="smallblue" from="small">
        <color>#0492A7</color>
    </fontdef>

    <fontdef name="smallboldgreen" from="smallgreen">
        <weight>bold</weight>
    </fontdef>

    <fontdef name="smallboldred" from="smallred">
        <weight>bold</weight>
    </fontdef>

    <fontdef name="smallboldblue" from="smallblue">
        <weight>bold</weight>
    </fontdef>

    <!-- Base definition of a button -->
    <button name="basebutton">
        <position>0,0</position>
        <statetype name="buttonstate">
            <state name="active">
                <imagetype name="background">
                    <filename>shared/text_button_off.png</filename>
                </imagetype>
                <textarea name="text">
                    <area>11,6,170,40</area>
                    <align>allcenter</align>
                    <font>medium</font>
                    <font state="selected">mediumlightgrey</font>
                    <font state="disabled">mediumlightgrey</font>
                </textarea>
            </state>
            <state name="selected" from="active">
                <imagetype name="background">
                    <filename>shared/text_button_on.png</filename>
                </imagetype>
            </state>
            <state name="disabled" from="active" />
            <state name="pushed" from="active">
                <imagetype name="background">
                    <filename>shared/text_button_pushed.png</filename>
                </imagetype>
            </state>
        </statetype>
    </button>

    <!-- Base definition of a textedit -->
    <textedit name="basetextedit">
        <area>0,0,375,41</area>
        <statetype name="background">
            <state name="active">
                <area>0,0,375,41</area>
                <shape name="background">
                    <area>18,0,357,100%</area>
                    <type>roundbox</type>
                    <cornerradius>3</cornerradius>
                    <fill color="#999999" alpha="255" />
                    <line color="#444444" width="2" />
                </shape>
                <imagetype name="left">
                    <position>0,1</position>
                    <filename>shared/textedit_left_unselected.png</filename>
                </imagetype>
            </state>
            <state name="selected" from="active">
                <shape name="background">
                    <fill color="#CCCCCC" alpha="255" />
                </shape>
                <imagetype name="left">
                    <filename>shared/textedit_left_selected.png</filename>
                </imagetype>
            </state>
            <state name="inactive" from="active" />
        </statetype>
        <imagetype name="cursor">
            <filename>cursor.png</filename>
        </imagetype>
        <textarea name="text">
            <area>25,8,345,25</area>
            <font>smallblack</font>
        </textarea>
    </textedit>

    <textarea name="basetextarea">
        <area>0,0,10,10</area>
        <font>small</font>
        <align>left</align>
        <multiline>no</multiline>
    </textarea>

    <textarea name="baseheading">
        <area>48,19,360,39</area>
        <font>largelightgrey</font>
        <align>allcenter</align>
    </textarea>

    <imagetype name="basebackground0">
        <filename>backgrounds/menu_background.png</filename>
        <position>78,66</position>
    </imagetype>

    <imagetype name="basebackground1">
        <filename>backgrounds/up-background.png</filename>
        <position>45,72</position>
    </imagetype>

    <imagetype name="basebackground2">
        <filename>backgrounds/play-background.png</filename>
        <position>49,72</position>
    </imagetype>

    <buttonlist name="basebuttonlist">
        <area>0,0,275,300</area>
        <buttonarea>0,10,100%,100%</buttonarea>
        <wrapstyle>selection</wrapstyle>
        <spacing>3</spacing>
        <statetype name="buttonitem">
            <state name="active">
                <area>0,0,90%,30</area>
                <textarea name="buttontext" from="basetextarea">
                    <area>30,2,100%,25</area>
                    <font state="running">smallgreen</font>
                    <font state="disabled">smallgrey</font>
                    <font state="error">smallred</font>
                    <font state="normal">small</font>
                    <font state="warning">smallyellow</font>
                </textarea>
                <imagetype name="buttonarrow">
                    <area>270,0,16,21</area>
                    <filename>shared/rightarrow.png</filename>
                </imagetype>
            </state>
            <state name="inactive" from="active" />
            <state name="selectedactive" from="active">
                <imagetype name="selectindicator">
                    <area>0,0,24,24</area>
                    <filename>shared/selectbar.png</filename>
                </imagetype>
            </state>
            <state name="selectedinactive" from="selectedactive">
                <imagetype name="selectindicator">
                    <area>0,0,24,24</area>
                    <filename>shared/inactiveselectbar.png</filename>
                </imagetype>
            </state>
        </statetype>
        <statetype name="upscrollarrow">
            <position>135,0</position>
            <showempty>yes</showempty>
            <state type="full">
                <imagetype name="upon">
                    <area>0,0,20,10</area>
                    <filename>shared/uparrow.png</filename>
                </imagetype>
            </state>
        </statetype>
        <statetype name="downscrollarrow">
            <position>135,275</position>
            <showempty>yes</showempty>
            <state type="full">
                <imagetype name="dnon">
                    <area>0,0,20,10</area>
                    <filename>shared/downarrow.png</filename>
                </imagetype>
            </state>
        </statetype>
    </buttonlist>

    <!-- Base definition of a progressbar -->
    <progressbar name="baseshortprogressbar">
        <area>0,0,251,15</area>
        <layout>horizontal</layout>
        <style>reveal</style>
        <imagetype name="background">
            <area>0,0,100%,100%</area>
            <filename>shared/small_slider_background.png</filename>
        </imagetype>
        <imagetype name="progressimage">
            <area>0,0,100%,100%</area>
            <filename>shared/small_slider_foreground.png</filename>
        </imagetype>
    </progressbar>

    <window name="backgroundwindow">

        <imagetype name="backgroundimage">
            <filename>backgrounds/background.png</filename>
        </imagetype>

        <imagetype name="mythtvlogo">
            <position>47,664</position>
            <filename>mythtvlogo.png</filename>
        </imagetype>

        <clock name="date">
            <area>846,24,257,30</area>
            <font>small</font>
            <template>%DATE%</template>
            <align>allcenter</align>
            <cutdown>true</cutdown>
        </clock>

        <clock name="time" from="date">
            <area>1114,24,123,30</area>
            <template>%TIME%</template>
        </clock>

<!--        <imagetype name="alert_background">
            <position>218,660</position>
            <filename>backgrounds/miniplayer_background.png</filename>
        </imagetype>

        <imagetype name="alert_icon">
            <filename>music/music_icon.png</filename>
            <position>236,665</position>
        </imagetype>

        <textarea name="alert_text">
            <area>290,660,760,47</area>
            <font>medium</font>
            <value></value>
            <scroll direction="left" type="auto" />
            <align>vcenter</align>
        </textarea>-->

    </window>

    <window name="MythPopupBox">
        <area>402,176,476,368</area>
        <imagetype name="backimg">
            <filename>backgrounds/popup_background.png</filename>
        </imagetype>
        <textarea name="messagearea" from="basetextarea">
            <area>15,8,440,95</area>
            <align>allcenter</align>
            <multiline>yes</multiline>
        </textarea>

        <buttonlist name="list" from="basebuttonlist">
            <area>10,114,440,240</area>
            <spacing>2</spacing>
            <statetype name="buttonitem">
                <state name="active">
                    <textarea name="buttontext" from="basetextarea">
                        <area>30,0,375,30</area>
                    </textarea>
                    <imagetype name="buttonarrow">
                        <position>405,3</position>
                        <filename>shared/rightarrow.png</filename>
                    </imagetype>
                </state>
                <state name="selectedactive" from="active">
                    <imagetype name="selectindicator">
                        <filename>shared/selectbar.png</filename>
                    </imagetype>
                </state>
                <state name="selectedinactive" from="active">
                    <imagetype name="selectindicator">
                        <filename>shared/inactiveselectbar.png</filename>
                    </imagetype>
                </state>
            </statetype>
            <statetype name="upscrollarrow">
                <position>423,0</position>
            </statetype>
            <statetype name="downscrollarrow">
                <position>423,223</position>
            </statetype>
        </buttonlist>
    </window>

    <window name="MythSearchDialog">
        <area>-1,-1,500,550</area>
        <imagetype name="backimg">
            <filename>backgrounds/search_popup_background.png</filename>
        </imagetype>

        <textarea name="title" from="basetextarea">
            <area>12,20,470,60</area>
            <multiline>yes</multiline>
            <align>allcenter</align>
        </textarea>

        <textedit name="input" from="basetextedit">
            <position>58,110</position>
        </textedit>

        <buttonlist name="itemlist" from="basebuttonlist">
            <area>22,170,470,280</area>
            <showarrow>no</showarrow>
            <statetype name="buttonitem">
                <state name="active">
                    <textarea name="buttontext">
                        <area>30,0,440,30</area>
                    </textarea>
                </state>
                <state name="selectedinactive" from="active"/>
                <state name="selectedactive" from="active"/>
            </statetype>
            <statetype name="upscrollarrow">
                <position>423,0</position>
            </statetype>
            <statetype name="downscrollarrow">
                <position>423,275</position>
            </statetype>
        </buttonlist>

        <button name="cancel" from="basebutton">
            <position>20,465</position>
            <value>Cancel</value>
        </button>

        <button name="ok" from="basebutton">
            <position>285,465</position>
            <value>OK</value>
        </button>

    </window>

</mythuitheme>

