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

    <!-- Base Font Definitions -->
    <fontdef name="basesmall" face="Droid Sans">
        <pixelsize>22</pixelsize>
        <color>#EEEEEE</color>
        <weight>bold</weight>
    </fontdef>

    <fontdef name="basesmaller" from="basesmall">
        <pixelsize>18</pixelsize>
    </fontdef>

    <fontdef name="basesmallbold" from="basesmall">
        <weight>bold</weight>
    </fontdef>

    <fontdef name="small" from="basesmall">
        <shadowcolor>#000000</shadowcolor>
        <shadowoffset>2,2</shadowoffset>
        <shadowalpha>0</shadowalpha>
    </fontdef>

    <fontdef name="basemedium" from="basesmall" face="Liberation Sans">
        <pixelsize>26</pixelsize>
    </fontdef>

    <fontdef name="basemediumbold" from="basemedium">
        <pixelsize>26</pixelsize>
        <weight>bold</weight>
    </fontdef>

    <fontdef name="baselarge" from="basemedium">
        <pixelsize>30</pixelsize>
        <shadowcolor>#000000</shadowcolor>
        <shadowoffset>2,2</shadowoffset>
        <shadowalpha>100</shadowalpha>
        <weight>bold</weight>
    </fontdef>

    <fontdef name="baselargenormal" from="baselarge">
        <weight>normal</weight>
    </fontdef>

    <fontdef name="baseextralarge" from="baselarge">
        <pixelsize>34</pixelsize>
        <shadowcolor>#000000</shadowcolor>
        <shadowoffset>4,4</shadowoffset>
        <shadowalpha>64</shadowalpha>
        <weight>bold</weight>
    </fontdef>

    <!-- State variations on small font -->
    <fontdef name="basesmall_normal_selected" from="basesmallbold">
        <color>#FFFFFF</color>
    </fontdef>
    <fontdef name="basesmall_normal" from="basesmall">
        <color>#9999cc</color>
    </fontdef>
    <fontdef name="basesmall_normal_inactive" from="basesmall">
        <color>#888888</color>
    </fontdef>
    <fontdef name="basesmall_warning_selected" from="basesmallbold">
        <color>#dddd44</color>
    </fontdef>
    <fontdef name="basesmall_warning" from="basesmall">
        <color>#bbbb33</color>
    </fontdef>
    <fontdef name="basesmall_favourite_selected" from="basesmallbold">
        <color>#dddd44</color>
    </fontdef>
    <fontdef name="basesmall_favourite" from="basesmall">
        <color>#bbbb33</color>
    </fontdef>
    <fontdef name="basesmall_favourite_unavailable" from="basesmall">
        <color>#9999cc</color>
    </fontdef>
    <fontdef name="basesmall_error_selected" from="basesmallbold">
        <color>#900800</color>
    </fontdef>
    <fontdef name="basesmall_error" from="basesmall">
        <color>#700700</color>
    </fontdef>
    <fontdef name="basesmall_disabled_selected" from="basesmallbold">
        <color>#888888</color>
    </fontdef>
    <fontdef name="basesmall_disabled" from="basesmall">
        <color>#666666</color>
    </fontdef>
    <fontdef name="basesmall_running_selected" from="basesmallbold">
        <color>#00FF00</color>
    </fontdef>
    <fontdef name="basesmall_running" from="basesmall">
        <color>#11DD11</color>
    </fontdef>
    <fontdef name="basesmall_textedit" from="basesmall">
        <color>#000000</color>
    </fontdef>
    <fontdef name="basesmall_normal_button" from="basesmallbold">
        <color>#FFFFFF</color>
    </fontdef>
    <fontdef name="basesmall_selected_button" from="basesmallbold">
        <color>#FFFFFF</color>
    </fontdef>
    <fontdef name="basesmall_disabled_button" from="basesmallbold">
        <color>#9999cc</color>
    </fontdef>
    <!-- State variations on medium font -->
    <fontdef name="basemedium_normal" from="basemediumbold">
        <color>#9999cc</color>
    </fontdef>
    <fontdef name="basemedium_normal_selected" from="basemedium">
        <color>#FFFFFF</color>
    </fontdef>
    <fontdef name="basemedium_disabled" from="basemedium">
        <color>#666666</color>
    </fontdef>
    <fontdef name="basemedium_highlight" from="basemediumbold">
        <color>#FFFF33</color>
    </fontdef>
    <fontdef name="basemedium_normal_button" from="basemediumbold">
        <color>#FFFFFF</color>
    </fontdef>
    <fontdef name="basemedium_selected_button" from="basemediumbold">
        <color>#FFFFFF</color>
    </fontdef>
    <fontdef name="basemedium_disabled_button" from="basemediumbold">
        <color>#9999cc</color>
    </fontdef>

    <!-- Fonts for specific screens -->
    <fontdef name="baseguide" from="basesmall">
        <pixelsize>20</pixelsize>
        <weight>normal</weight>
    </fontdef>

    <!-- Base definition of a shape used as a background on many screens -->
    <shape name="basebackground">
        <area>0,0,10,10</area>
        <type>roundbox</type>
        <fill color="#000000" alpha="120" />
        <line color="#FFFFFF" alpha="255" width="2" />
        <cornerradius>12</cornerradius>
    </shape>

    <!-- Base definition of a shape used as a background on many popups -->
    <shape name="basepopupbackground" from="basebackground">
        <fill style="gradient">
            <gradient direction="vertical" alpha="255">
                <stop position="0" color="#111111" />
                <stop position="50" color="#666666" />
                <stop position="100" color="#111111" />
            </gradient>
        </fill>
    </shape>

    <!-- Base definition of a shape used as a background to many widgets -->
    <shape name="basewidgetshape">
        <area>0,0,100%,100%</area>
        <type>roundbox</type>
        <cornerradius>4</cornerradius>
        <fill color="#CCCCCC" alpha="120" />
        <line color="#FFFFFF" width="3" />
    </shape>

    <shape name="baseselectedwidgetshape" from="basewidgetshape">
        <fill style="gradient">
            <gradient start="#4d6b30" end="#58f833" alpha="200" direction="vertical" />
        </fill>
    </shape>

    <shape name="baseinactivewidgetshape" from="basewidgetshape">
        <fill color="#43b038" alpha="120" />
    </shape>

    <buttonlist name="basebuttonlist">
        <area>0,0,300,250</area>
        <layout>vertical</layout>
        <spacing>4</spacing>
        <buttonarea>0,0,100%,97%</buttonarea>
        <statetype name="buttonitem">
            <area>0,0,100%,30</area>
            <state name="active">
                <area>0,0,100%,30</area>
                <shape name="background">
                    <area>0,0,100%,100%</area>
                    <fill style="gradient">
                        <gradient start="#505050" end="#000000" alpha="200" />
                    </fill>
                </shape>
                <textarea name="buttontext">
                    <area>6,0,95%,30</area>
                    <font>basesmall</font>
                    <cutdown>yes</cutdown>
                    <align>left,vcenter</align>
                </textarea>
                <statetype name="buttoncheck">
                    <position>91%,4</position>
                    <state type="off">
                        <imagetype name="checkoff">
                            <filename>lb-check-empty.png</filename>
                        </imagetype>
                    </state>
                    <state type="half">
                        <imagetype name="checkhalf">
                            <filename>lb-check-half.png</filename>
                        </imagetype>
                    </state>
                    <state type="full">
                        <imagetype name="checkfull">
                            <filename>lb-check-full.png</filename>
                        </imagetype>
                    </state>
                </statetype>
                <imagetype name="buttonarrow">
                    <position>94%,6</position>
                    <filename>lb-arrow.png</filename>
                </imagetype>
            </state>
            <state name="selectedactive" from="active">
                <shape name="background">
                    <fill style="gradient">
                        <gradient start="#58f833" end="#4d6b30" alpha="200" />
                    </fill>
                </shape>
            </state>
            <state name="selectedinactive" from="active">
                <shape name="background">
                    <fill style="gradient">
                        <gradient start="#58f833" end="#4d6b30" alpha="130" />
                    </fill>
                </shape>
                <textarea name="buttontext">
                    <font>basesmall_normal_inactive</font>
                </textarea>
            </state>
        </statetype>
        <statetype name="upscrollarrow">
            <position>10,96%</position>
            <state type="off">
                <imagetype name="upon">
                    <filename>lb-uparrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="upoff">
                    <filename>lb-uparrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
        <statetype name="downscrollarrow">
            <position>40,96%</position>
            <state type="off">
                <imagetype name="dnon">
                    <filename>lb-dnarrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="dnoff">
                    <filename>lb-dnarrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
    </buttonlist>


    <!-- Base definition of a buttonlist in wide configuration -->
    <buttonlist name="basebuttonlist2">
        <area>0,0,1240,380</area>
        <layout>vertical</layout>
        <spacing>4</spacing>
        <wrapstyle>selection</wrapstyle>
        <buttonarea>0,0,1200,376</buttonarea>
        <statetype name="buttonitem">
            <area>0,0,1200,26</area>
            <state name="active">
                <textarea name="buttontext">
                    <area>34,2,1156,24</area>
                    <font>basesmall_normal</font>
                    <font state="disabled">basesmall_disabled</font>
                    <font state="error">basesmall_error</font>
                    <font state="warning">basesmall_warning</font>
                    <font state="normal">basesmall_normal</font>
                    <font state="running">basesmall_running</font>
                    <align>vcenter</align>
                </textarea>
            </state>
            <state name="selectedactive" from="active">
                <shape name="selectbar">
                    <area>20,0,1156,30</area>
                    <type>roundbox</type>
                    <line color="#00FF00" alpha="255" width="1" />
                    <fill color="#43b038" alpha="128" />
                    <cornerradius>4</cornerradius>
                </shape>
                <textarea name="buttontext">
                    <area>34,2,1156,24</area>
                    <font>base_normal_selected</font>
                    <font state="disabled">basesmall_disabled_selected</font>
                    <font state="error">basesmall_error_selected</font>
                    <font state="warning">basesmall_warning_selected</font>
                    <font state="normal">basesmall_normal_selected</font>
                    <font state="running">basesmall_running_selected</font>
                    <align>vcenter</align>
                </textarea>
            </state>
            <state name="selectedinactive" from="active" >
               <shape name="selectbar">
                    <area>28,0,1144,30</area>
                    <type>roundbox</type>
                    <line color="#00FF00" alpha="100" width="1" />
                    <fill color="#43b038" alpha="50" />
                    <cornerradius>4</cornerradius>
                </shape>
            </state>
        </statetype>
        <statetype name="upscrollarrow">
            <position>1190,6</position>
            <state type="off">
                <imagetype name="upon">
                    <filename>lb-uparrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="upoff">
                    <filename>lb-uparrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
        <statetype name="downscrollarrow">
            <position>1190,320</position>
            <state type="off">
                <imagetype name="dnon">
                    <filename>lb-dnarrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="dnoff">
                    <filename>lb-dnarrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
    </buttonlist>

    <!-- Base definition of a button -->
    <button name="basebutton">
        <area>0,0,154,44</area>
        <statetype name="buttonstate">
            <area>0,0,100%,100%</area>
            <state name="active">
                <area>0,0,100%,100%</area>
                <shape name="background" from="basewidgetshape" />
                <textarea name="text" >
                    <area>4,2,100%-4,100%-2</area>
                    <align>allcenter</align>
                    <font>basemedium_normal_button</font>
                    <font state="selected">basemedium_selected_button</font>
                    <font state="disabled">basemedium_disabled_button</font>
                </textarea>
            </state>
            <state name="selected" from="active">
                <shape name="background" from="baseselectedwidgetshape" />
            </state>
            <state name="disabled" from="active" />
            <state name="pushed" from="active">
                <textarea name="text" >
                    <area>4,4,100%-4,100%</area>
                </textarea>
            </state>
        </statetype>
    </button>

    <!-- Base definition of a wide button -->
    <button name="basewidebutton" from="basebutton">
        <area>0,0,291,44</area>
    </button>

    <!-- Base definition of a very wide button -->
    <button name="baseverywidebutton" from="basebutton">
        <area>0,0,696,44</area>
    </button>

    <!-- Base definition of 'search' button, those little search launch buttons
         which appear next to some text input fields in forms -->
    <button name="basesearchbutton" from="basebutton">
        <area>0,0,32,32</area>
    </button>

    <!-- Base definition of checkbox -->
    <checkbox name="basecheckbox" >
        <area>0,0,32,32</area>
        <statetype name="background">
            <state name="active">
                <area>0,0,32,32</area>
                <shape name="background" from="basewidgetshape" />
            </state>
            <state name="selected" from="active">
                <area>0,0,32,32</area>
                <shape name="background" from="baseselectedwidgetshape" />
            </state>
            <state name="disabled" />
        </statetype>
        <statetype name="checkstate">
            <position>4,4</position>
            <state type="off" />
            <state type="half">
                <imagetype name="background">
                    <filename>checkbox_halfcheck.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="mark">
                    <filename>checkbox_fullcheck.png</filename>
                </imagetype>
            </state>
        </statetype>
    </checkbox>

    <!-- Base definition of a spinbox -->
    <spinbox name="basespinbox">
        <area>0,0,90,40</area>
        <layout>horizontal</layout>
        <statetype name="buttonitem">
            <area>0,0,100%,100%</area>
            <state name="active">
                <area>0,0,-20,100%</area>
                <shape name="background" from="basewidgetshape" />
                <textarea name="buttontext">
                    <area>6,4,-6,-4</area>
                    <font>basesmall</font>
                    <cutdown>yes</cutdown>
                    <align>right,vcenter</align>
                </textarea>
            </state>
            <state name="selectedactive" from="active">
                <shape name="background" from="baseselectedwidgetshape" />
            </state>
            <state name="selectedinactive" from="active" />
        </statetype>
        <statetype name="downscrollarrow">
            <position>100%-14,2</position>
            <state type="off">
                <imagetype name="dnon">
                    <filename>lb-rtarrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="dnoff">
                    <filename>lb-rtarrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
        <statetype name="upscrollarrow">
            <position>100%-14,22</position>
            <state type="off">
                <imagetype name="upon">
                    <filename>lb-ltarrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="upoff">
                    <filename>lb-ltarrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
    </spinbox>

    <!-- Base definition of a spinbox with centered strings -->
    <spinbox name="base_centered_spinbox" from="basespinbox">
        <area>0,0,90,40</area>
        <layout>horizontal</layout>
        <statetype name="buttonitem">
            <state name="active">
                <shape name="background" from="basewidgetshape" />
                <textarea name="buttontext">
                    <font>basesmall</font>
                    <cutdown>no</cutdown>
                    <align>allcenter</align>
                </textarea>
            </state>
            <state name="selectedactive" from="active">
                <shape name="background" from="baseselectedwidgetshape" />
            </state>
            <state name="selectedinactive" from="active" />
        </statetype>
    </spinbox>

    <!-- Base definition of a wide spinbox (room for strings) -->
    <spinbox name="basewidespinbox" from="basespinbox">
        <area>0,0,696,44</area>
    </spinbox>

    <!-- Base definition of a list in 'selector' configuration -->
    <buttonlist name="baseselector">
        <area>0,0,220,44</area>
        <layout>horizontal</layout>
        <buttonarea>0,0,-20,100%</buttonarea>
        <statetype name="buttonitem">
            <area>0,0,100%,100%</area>
            <state name="active">
                <area>0,0,100%,100%</area>
                <shape name="background" from="basewidgetshape" />
                <textarea name="buttontext">
                    <area>10,4,-40,-4</area>
                    <font>basesmall</font>
                    <cutdown>yes</cutdown>
                    <align>left,vcenter</align>
                </textarea>
            </state>
            <state name="selectedinactive" from="active" />
            <state name="selectedactive" from="active">
                <shape name="background" from="baseselectedwidgetshape" />
            </state>
        </statetype>
        <statetype name="downscrollarrow">
            <position>100%-14,2</position>
            <state type="off">
                <imagetype name="dnon">
                    <area>0,0,12,18</area>
                    <filename>lb-rtarrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="dnoff">
                    <area>0,0,12,18</area>
                    <filename>lb-rtarrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
        <statetype name="upscrollarrow">
            <position>100%-14,22</position>
            <state type="off">
                <imagetype name="upon">
                    <area>0,0,12,18</area>
                    <filename>lb-ltarrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="upoff">
                    <area>0,0,12,18</area>
                    <filename>lb-ltarrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
    </buttonlist>

    <!-- Base definition of a list in medium 'selector' configuration -->
    <buttonlist name="basemediumselector" from="baseselector">
        <area>0,0,376,44</area>
    </buttonlist>

    <!-- Base definition of a list in wide 'selector' configuration -->
    <buttonlist name="basewideselector" from="baseselector">
        <area>0,0,696,44</area>
    </buttonlist>

    <buttonlist name="baseverywideselector" from="baseselector">
        <area>0,0,710,44</area>
    </buttonlist>

    <!-- Base definition of a textarea -->
    <textarea name="basetextarea">
        <area>0,0,0,0</area>
        <font>basesmall</font>
        <multiline>no</multiline>
        <align>left</align>
    </textarea>

    <!-- Base definition of a textedit -->
    <textedit name="basetextedit">
        <area>0,0,376,50</area>
        <statetype name="background">
            <area>0,0,100%,100%</area>
            <state name="active">
                <area>0,0,100%,100%</area>
                <shape name="background" from="basewidgetshape" />
                <shape name="textbackground">
                    <area>10,10,-10,-10</area>
                    <type>roundbox</type>
                    <cornerradius>4</cornerradius>
                    <fill color="#FFFFFF" alpha="200" />
                </shape>
            </state>
            <state name="selected" from="active">
                <shape name="background" from="baseselectedwidgetshape" />
                <shape name="textbackground">
                    <fill color="#FFFFFF" alpha="255" />
                </shape>
            </state>
            <state name="inactive" from="active" />
        </statetype>
        <imagetype name="cursor">
            <filename>ui/cursor.png</filename>
        </imagetype>
        <textarea name="text">
            <area>12,12,-12,-12</area>
            <font>basesmall_textedit</font>
        </textarea>
    </textedit>

    <!-- Base definition of a multi-line textedit -->
    <textedit name="basemultilinetextedit">
        <area>0,0,376,110</area>
        <statetype name="background">
            <area>0,0,100%,100%</area>
            <state name="active">
                <area>0,0,100%,100%</area>
                <shape name="background" from="basewidgetshape" />
                <shape name="textbackground">
                    <area>10,10,-10,-10</area>
                    <type>roundbox</type>
                    <cornerradius>4</cornerradius>
                    <fill color="#FFFFFF" alpha="200" />
                </shape>
            </state>
            <state name="selected" from="active">
                <shape name="background" from="baseselectedwidgetshape" />
                <shape name="textbackground">
                    <fill color="#FFFFFF" alpha="255" />
                </shape>
            </state>
            <state name="inactive" from="active" />
        </statetype>
        <imagetype name="cursor">
            <filename>ui/cursor.png</filename>
        </imagetype>
        <textarea name="text">
            <area>12,12,-12,-12</area>
            <font>basesmall_textedit</font>
            <multiline>yes</multiline>
        </textarea>
    </textedit>

    <!-- Base definition of a progressbar -->
    <progressbar name="baseprogressbar">
        <area>0,0,536,38</area>
        <layout>horizontal</layout>
        <style>reveal</style>
        <imagetype name="background">
            <area>0,0,100%,100%</area>
            <filename>progressbar_background.png</filename>
        </imagetype>
        <imagetype name="progressimage">
            <area>0,0,100%,100%</area>
            <filename>progressbar_fill.png</filename>
        </imagetype>
    </progressbar>

    <!-- Base definition of a vertical scrollbar -->
    <scrollbar name="basevertscrollbar">
        <area>1114,0,14,970</area>
        <layout>vertical</layout>
        <hidedelay>0</hidedelay>
        <shape name="background">
            <area>0,0,100%,100%</area>
            <type>roundbox</type>
            <line color="#aaaaaa" alpha="255" width="1" />
            <fill style="gradient">
                <gradient direction="diagonal">
                    <stop position="0" color="#999999" alpha="255" />
                    <stop position="100" color="#999999" alpha="120" />
                </gradient>
            </fill>
            <cornerradius>12</cornerradius>
        </shape>
        <shape name="slider">
            <area>0,0,14,40</area>
            <type>roundbox</type>
            <line color="#0895f8" alpha="255" width="1" />
            <fill style="gradient">
                <gradient direction="diagonal">
                    <stop position="0" color="#0767AB" alpha="255" />
                    <stop position="100" color="#0767AB" alpha="120" />
                </gradient>
            </fill>
            <cornerradius>12</cornerradius>
        </shape>
    </scrollbar>

    <!-- Base definition of a horizontal scrollbar -->
    <scrollbar name="basehorizscrollbar" from="basevertscrollbar">
        <area>20,1030,1880,14</area>
        <layout>horizontal</layout>
        <shape name="slider">
            <area>0,0,40,14</area>
        </shape>
    </scrollbar>

    <!-- Base definition of a webbrowser -->
    <webbrowser name="basewebbrowser">
        <area>20,20,1240,500</area>
        <browserarea>0,0,100%-16,100%-16</browserarea>
        <zoom>1.0</zoom>
        <scrollduration>500</scrollduration>
        <scrollbar name="vertscrollbar" from="basevertscrollbar">
            <area>100%-14,0,14,100%-14</area>
        </scrollbar>
        <scrollbar name="horizscrollbar" from="basehorizscrollbar">
            <area>0,100%-14,100%-14,14</area>
        </scrollbar>
    </webbrowser>

    <!-- a program information group used on a few schedule editor screens -->
    <group name="baseprogramdetailsgroup">
        <area>0,0,1232,280</area>

        <shape name="details_background" from="basebackground">
            <area>0,0,1230,276</area>
        </shape>

        <textarea name="title" from="basetextarea">
            <area>26,10,1180,46</area>
            <font>baselarge</font>
        </textarea>

        <textarea name="timedate" from="basetextarea">
            <area>26,246,440,28</area>
        </textarea>

        <textarea name="template" from="basetextarea">
            <area>516,246,340,28</area>
            <align>left</align>
            <template>%Using |TEMPLATE| Template%</template>
        </textarea>

        <textarea name="channel" from="basetextarea">
            <area>1000,246,200,28</area>
            <align>right</align>
        </textarea>

        <textarea name="description" from="basetextarea">
            <area>26,46,1180,200</area>
            <multiline>yes</multiline>
            <template>%"|SUBTITLE|" %%LONGREPEAT%%(|STARS|) %%DESCRIPTION%</template>
        </textarea>
    </group>

    <!-- Popup Dialogue Box -->
    <window name="MythPopupBox">
        <area>-1,-1,500,500</area>

        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <textarea name="messagearea" from="basetextarea">
            <area>12,14,470,210</area>
            <multiline>yes</multiline>
            <align>allcenter</align>
        </textarea>

        <buttonlist name="list" from="basebuttonlist">
            <area>12,224,470,250</area>
            <drawfrombottom>yes</drawfrombottom>
            <showarrow>no</showarrow>
            <wrapstyle>selection</wrapstyle>
            <statetype name="buttonitem">
                <state name="active">
                    <textarea name="buttontext">
                        <area>0,0,100%,30</area>
                        <align>allcenter</align>
                    </textarea>
                </state>
                <state name="selectedinactive">
                    <textarea name="buttontext">
                        <area>0,0,100%,30</area>
                        <align>allcenter</align>
                    </textarea>
                </state>
                <state name="selectedactive">
                    <textarea name="buttontext">
                        <area>0,0,100%,30</area>
                        <align>allcenter</align>
                    </textarea>
                </state>
            </statetype>
        </buttonlist>
    </window>

    <!-- Fullscreen Dialogue Box -->
    <window name="MythDialogBox">

        <shape name="background" from="basebackground">
            <area>10,10,1260,700</area>
            <fill color="#0e58a7" alpha="255" />
        </shape>

        <textarea name="title" from="basetextarea">
            <area>20,14,1260,50</area>
            <font>baselarge</font>
            <align>allcenter</align>
        </textarea>

        <textarea name="messagearea" from="basetextarea">
            <area>100,100,1080,210</area>
            <multiline>yes</multiline>
            <font>basemedium</font>
            <align>allcenter</align>
        </textarea>

        <buttonlist name="list" from="basebuttonlist">
            <area>100,320,1080,350</area>
            <drawfrombottom>yes</drawfrombottom>
            <showarrow>no</showarrow>
            <wrapstyle>selection</wrapstyle>
            <triggerevent context="Global" action="ESCAPE">LEFT</triggerevent>
            <triggerevent context="Global" action="SELECT">RIGHT</triggerevent>
            <statetype name="buttonitem">
                <state name="active">
                    <textarea name="buttontext">
                        <area>0,0,100%,30</area>
                        <align>allcenter</align>
                    </textarea>
                </state>
                <state name="selectedinactive">
                    <textarea name="buttontext">
                        <area>0,0,100%,30</area>
                        <align>allcenter</align>
                    </textarea>
                </state>
                <state name="selectedactive">
                    <textarea name="buttontext">
                        <area>0,0,100%,30</area>
                        <align>allcenter</align>
                    </textarea>
                </state>
            </statetype>
        </buttonlist>
    </window>

    <window name="MythBusyDialog">
        <area>-1,-1,588,170</area>
        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>
        <imagetype name="animation">
            <area>40,40,105,105</area>
            <filepattern low="0" high="24">busyimages/%1.png</filepattern>
            <delay>250</delay>
        </imagetype>
        <textarea name="message" from="basetextarea">
            <area>170,20,390,126</area>
            <align>allcenter</align>
            <multiline>yes</multiline>
        </textarea>
    </window>

    <window name="MythProgressDialog">
        <area>-1,-1,588,170</area>
        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>
        <textarea name="message" from="basetextarea">
            <area>20,20,548,60</area>
            <multiline>yes</multiline>
            <align>allcenter</align>
        </textarea>
        <progressbar name="progressbar" from="baseprogressbar">
            <position>22,80</position>
        </progressbar>
        <textarea name="progresstext" from="basetextarea">
            <area>30,130,200,30</area>
            <align>left,top</align>
            <value>0%</value>
        </textarea>
    </window>

    <window name="MythConfirmationDialog">
        <area>-1,-1,588,170</area>
        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <textarea name="message" from="basetextarea">
            <area>14,14,560,90</area>
            <align>allcenter</align>
            <multiline>yes</multiline>
            <cutdown>no</cutdown>
        </textarea>

        <button name="cancel" from="basebutton">
            <position>90,110</position>
            <value>Cancel</value>
        </button>

        <button name="ok" from="basebutton">
            <position>338,110</position>
            <value>OK</value>
        </button>
    </window>

    <window name="MythTextInputDialog">
        <area>-1,-1,588,170</area>
        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <textarea name="message" from="basetextarea">
            <area>20,20,548,30</area>
            <align>allcenter</align>
        </textarea>

        <textedit name="input" from="basetextedit">
            <position>102,50</position>
        </textedit>

        <button name="ok" from="basebutton">
            <position>110,110</position>
            <value>OK</value>
        </button>
    </window>

    <window name="MythSearchDialog">
        <area>-1,-1,500,500</area>
        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <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,84</position>
        </textedit>

        <buttonlist name="itemlist" from="basebuttonlist">
            <area>12,150,470,270</area>
            <showarrow>no</showarrow>
            <statetype name="buttonitem">
                <state name="active">
                    <textarea name="buttontext">
                        <area>4,0,460,30</area>
                    </textarea>
                </state>
                <state name="selectedinactive">
                    <textarea name="buttontext">
                        <area>4,0,460,30</area>
                    </textarea>
                </state>
                <state name="selectedactive">
                    <textarea name="buttontext">
                        <area>4,0,460,30</area>
                    </textarea>
                </state>
            </statetype>
        </buttonlist>

        <button name="cancel" from="basebutton">
            <position>30,436</position>
            <value>Cancel</value>
        </button>

        <button name="ok" from="basebutton">
            <position>316,436</position>
            <value>OK</value>
        </button>

    </window>

        <!-- Popup search dialog used to search button lists -->
    <window name="MythSearchListDialog">
        <area>-1,-1,620,165</area>
        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <textarea name="title" from="basetextarea">
            <area>5,10,600,30</area>
            <multiline>yes</multiline>
            <align>allcenter</align>
            <value>Search List</value>
        </textarea>

        <textedit name="searchedit" from="basetextedit">
            <position>120,40</position>
        </textedit>

        <button name="prevbutton" from="basebutton">
            <position>20,105</position>
            <value>Previous</value>
        </button>

        <button name="nextbutton" from="basebutton">
            <position>445,105</position>
            <value>Next</value>
        </button>

        <statetype name="searchstate">
            <area>210,120,200,30</area>
            <state name="found">
                <textarea name="statustext" from="basetextarea">
                    <area>0,0,200,30</area>
                    <align>allcenter</align>
                    <font>basesmallgreen</font>
                    <value>Found</value>
                </textarea>
            </state>
            <state name="notfound">
                <textarea name="statustext" from="basetextarea">
                    <area>0,0,200,30</area>
                    <align>allcenter</align>
                    <font>basesmallred</font>
                    <value>Not Found</value>
                </textarea>
            </state>
        </statetype>
    </window>

    <window name="MythFileBrowser">
        <area>-1,-1,730,510</area>
        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <textedit name="location" from="basetextedit">
            <position>40,14</position>
        </textedit>

        <buttonlist name="filelist">
            <area>4,70,500,440</area>
            <layout>grid</layout>
            <buttonarea>0,0,500,430</buttonarea>
            <statetype name="buttonitem">
                <area>0,0,166,106</area>
                <state name="active">
                    <area>0,0,166,106</area>
                    <shape name="background" />
                    <statetype name="nodetype">
                        <state name="folder">
                            <imagetype name="icon">
                                <area>6,4,150,74</area>
                                <filename>shared/directory.png</filename>
                                <preserveaspect>yes</preserveaspect>
                            </imagetype>
                        </state>
                        <state name="upfolder" from="folder">
                            <imagetype name="icon">
                                <filename>shared/updirectory.png</filename>
                            </imagetype>
                        </state>
                        <state name="executable" from="folder">
                            <imagetype name="icon">
                                <filename>shared/executable.png</filename>
                            </imagetype>
                        </state>
                        <state name="file" from="folder">
                            <imagetype name="icon">
                                <filename>shared/file.png</filename>
                            </imagetype>
                        </state>
                    </statetype>
                    <imagetype name="buttonimage">
                        <area>4,4,150,74</area>
                        <preserveaspect>true</preserveaspect>
                    </imagetype>
                    <textarea name="buttontext" from="basetextarea">
                        <area>2,80,160,26</area>
                        <align>allcenter</align>
                    </textarea>
                </state>
                <state name="selectedinactive" from="active" />
                <state name="selectedactive" from="active">
                    <shape name="background">
                        <area>0,0,166,106</area>
                        <fill style="gradient">
                            <gradient start="#999999" end="#666666" alpha="220" />
                        </fill>
                    </shape>
                </state>
            </statetype>
        </buttonlist>

        <imagetype name="preview">
            <area>510,126,200,230</area>
            <preserveaspect>true</preserveaspect>
        </imagetype>

        <textarea name="info" from="basetextarea">
            <area>520,356,180,26</area>
            <align>allcenter</align>
        </textarea>

        <button name="back" from="basebutton">
            <position>530,16</position>
            <value>Up Level</value>
        </button>

        <button name="home" from="basebutton">
            <position>530,70</position>
            <value>Home</value>
        </button>

        <button name="cancel" from="basebutton">
            <position>530,386</position>
            <value>Cancel</value>
        </button>

        <button name="ok" from="basebutton">
            <position>530,440</position>
            <value>OK</value>
        </button>

    </window>

    <window name="MythTimeInputDialog">
        <area>-1,-1,580,165</area>

        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <textarea name="message" from="basetextarea">
            <area>10,8,560,50</area>
            <font>basemedium</font>
            <align>allcenter</align>
            <value>Select Time &amp; Date</value>
            <multiline>true</multiline>
        </textarea>

        <buttonlist name="dates" from="baseselector">
            <position>40,65</position>
        </buttonlist>

        <buttonlist name="times" from="baseselector">
            <position>330,65</position>
        </buttonlist>

        <button name="ok" from="basebutton">
            <position>220,115</position>
            <value>OK</value>
        </button>

    </window>

    <window name="videowindow">

        <shape name="shape1">
            <area>0,0,1280,720</area>
            <type>box</type>
            <fill color="#000000" alpha="255" />
        </shape>

        <textarea name="title" from="basetextarea">
            <area>500,336,280,50</area>
            <font>baselarge</font>
            <align>allcenter</align>
            <value>Please Wait...</value>
        </textarea>

        <progressbar name="progress" from="baseprogressbar">
            <position>372,425</position>
        </progressbar>

    </window>

    <window name="backgroundwindow">
        <imagetype name="backimg">
          <filename>ui/background.png</filename>
        </imagetype>

        <fontdef name="medium" face="Droid Sans">
            <color>#FFFFFF</color>
            <pixelsize>26</pixelsize>
            <weight>bold</weight>
        </fontdef>

        <fontdef name="large" face="Liberation Sans">
             <color>#FFFFFF</color>
             <pixelsize>28</pixelsize>
             <weight>bold</weight>
        </fontdef>

        <fontdef name="clock" face="Liberation Sans">
             <color>#FFFFFF</color>
             <pixelsize>26</pixelsize>
             <weight>bold</weight>
        </fontdef>
    </window>

    <window name="MythMetadataResults">
        <area>-1,-1,1100,600</area>

        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <buttonlist name="results" from="basebuttonlist">
            <area>20,20,1060,560</area>
            <arrange>stack</arrange>
            <statetype name="buttonitem">
                <state name="active">
                    <area>0,0,100%,100</area>
                    <shape name="background">
                        <area>0,0,100%,100</area>
                    </shape>
                    <imagetype name="buttonimage">
                        <area>45,0,50,100</area>
                        <preserveaspect>true</preserveaspect>
                    </imagetype>
                    <textarea name="buttontext">
                        <area>0,0,0,0</area>
                    </textarea>
                    <textarea name="title">
                        <area>140,10,827,80</area>
                        <align>left,vcenter</align>
                        <font>baselarge</font>
                        <template>%TITLE%% - |SUBTITLE%% (|YEAR|)%</template>
                        <multiline>yes</multiline>
                    </textarea>
                </state>
                <state name="selectedactive">
                    <area>0,0,100%,180</area>

                    <shape name="background">
                        <area>0,0,100%,180</area>
                    </shape>
                    <imagetype name="buttonimage">
                        <area>10,0,120,180</area>
                        <preserveaspect>true</preserveaspect>
                    </imagetype>
                    <textarea name="buttontext">
                        <area>0,0,0,0</area>
                    </textarea>
                    <textarea name="title">
                        <area>140,0,905,30</area>
                        <align>left</align>
                        <font>basemedium</font>
                        <template>%TITLE%% - |SUBTITLE%% (|YEAR|)%</template>
                        <multiline>yes</multiline>
                    </textarea>
                    <textarea name="description">
                        <area>140,37,905,140</area>
                        <align>justify</align>
                        <font>basesmall</font>
                        <template>%DESCRIPTION%</template>
                        <multiline>yes</multiline>
                    </textarea>
                </state>
            </statetype>
        </buttonlist>
    </window>

    <window name="MythArtworkResults">
        <area>-1,-1,413,426</area>

        <shape name="backimg" from="basepopupbackground">
            <area>0,0,100%,100%</area>
        </shape>

        <buttonlist name="results">
            <area>20,22,363,378</area>
            <layout>vertical</layout>
            <spacing>5</spacing>
            <wrapstyle>selection</wrapstyle>
            <buttonarea>0,0,100%,97%</buttonarea>
            <triggerevent context="Global" action="ESCAPE">LEFT</triggerevent>
            <statetype name="buttonitem">
                <state name="active">
                    <area>0,0,100%,85</area>
                    <shape name="buttonbackground">
                        <area>0,0,100%,100%</area>
                        <fill style="gradient">
                            <gradient start="#505050" end="#000000" alpha="200" direction="vertical"  />
                        </fill>
                    </shape>
                    <imagetype name="buttonimage">
                        <area>5,2,150,80</area>
                        <preserveaspect>true</preserveaspect>
                    </imagetype>
                    <textarea name="resolution">
                        <area>160,0,175,85</area>
                        <font>basesmall</font>
                        <cutdown>yes</cutdown>
                        <align>left,vcenter</align>
                    </textarea>
                </state>
                <state name="selectedactive" from="active">
                    <shape name="buttonbackground">
                        <fill style="gradient">
                            <gradient start="#52CA38" end="#349838" alpha="255" />
                        </fill>
                    </shape>
                </state>
                <state name="selectedinactive" from="active">
                    <shape name="buttonbackground">
                        <fill style="gradient">
                            <gradient start="#52CA38" end="#349838" alpha="100" />
                        </fill>
                    </shape>
                    <textarea name="resolution">
                        <font>basesmallpurple</font>
                    </textarea>
                </state>
            </statetype>
            <statetype name="upscrollarrow">
                <position>10,96%</position>
                <state type="off">
                    <imagetype name="upon">
                        <filename>lb-uparrow-reg.png</filename>
                    </imagetype>
                </state>
                <state type="full">
                    <imagetype name="upoff">
                        <filename>lb-uparrow-sel.png</filename>
                    </imagetype>
                </state>
            </statetype>
            <statetype name="downscrollarrow">
                <position>40,96%</position>
                <state type="off">
                    <imagetype name="dnon">
                        <filename>lb-dnarrow-reg.png</filename>
                    </imagetype>
                </state>
                <state type="full">
                    <imagetype name="dnoff">
                        <filename>lb-dnarrow-sel.png</filename>
                    </imagetype>
                </state>
            </statetype>
        </buttonlist>
    </window>

</mythuitheme>
