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

<mythuitheme>
    <window name="settingssetup">
        <textarea name="title" from="base_heading">
            <value>Settings</value>
        </textarea>

        <shape name="settings-list-backdrop" from="base_backdrop">
            <area>20,36,1240,488</area>
        </shape>

        <shape name="settings-list-backdrop-line" from="base_backdrop_line">
            <area>21,37,1238,484</area>
        </shape>

        <shape name="settings-list-top-line" from="base_highlight_line">
            <area>22,38,1236,2</area>
        </shape>

        <shape name="settings-list-bottom-line" from="base_highlight_line">
            <area>22,518,1236,2</area>
        </shape>

        <shape name="settings-list-left-line" from="base_highlight_vertical_line">
            <area>22,40,2,476</area>
        </shape>

        <shape name="settings-list-right-line" from="base_highlight_vertical_line">
            <area>1256,40,2,476</area>
        </shape>

        <shape name="settings-list-arrows-backdrop" from="base_arrows_backdrop">
            <area>1207,522,50,11</area>
        </shape>

        <shape name="settings-bottom-backdrop" from="base_backdrop">
            <area>20,532,1240,154</area>
        </shape>

        <shape name="settings-bottom-backdrop-line" from="base_backdrop_line">
            <area>21,533,1238,150</area>
        </shape>

        <shape name="settings-bottom-top-line" from="base_highlight_line">
            <area>22,534,1236,2</area>
        </shape>

        <shape name="settings-bottom-bottom-line" from="base_highlight_line">
            <area>22,680,1236,2</area>
        </shape>

        <shape name="settings-bottom-left-line" from="base_highlight_vertical_line">
            <area>22,536,2,146</area>
        </shape>

        <shape name="settings-bottom-right-line" from="base_highlight_vertical_line">
            <area>1256,536,2,146</area>
        </shape>

        <shape name="settings-bottom-seperator-first-line" from="base_line">
            <area>43,609,1194,2</area>
        </shape>

        <buttonlist name="settingslist" from="base_list">
            <area>28,43,1224,472</area>
            <layout>vertical</layout>
            <spacing>4</spacing>
            <scrollstyle>free</scrollstyle>
            <arrange>stack</arrange>
            <wrapstyle>items</wrapstyle>
            <buttonarea>0,0,100%,100%</buttonarea>
            <statetype name="buttonitem">
                <state name="active">
                    <area>0,0,1224,30</area>
                    <group name="select_bar" from="base_select_bar_active_group">
                        <area>0,0,100%,100%</area>
                    </group>

                    <textarea name="buttontext">
                        <area>25,0,50%-5,30</area>
                    </textarea>
                   
                    <group name="widgets">
                        <area>50%+5,0,100%,100%</area>
                        <statetype name="widgettype">
                            <area>0,0,100%-24,100%</area>
                            <state name="standard">
                                <area>0,0,100%,100%</area> 
                            </state>
                            <state name="group">
                                <area>0,0,100%,100%</area> 
                            </state>
                            <state name="checkbox">
                                <area>0,0,100%,100%</area> 
                            </state>
                            <state name="textedit">
                                <area>0,0,100%,100%</area> 
                                <group name="texteditgroup">
                                    <area>0,0,100%,100%</area>
                                </group>
                            </state>
                            <state name="filebrowser">
                                <area>0,0,100%,100%</area>
                            </state>
                            <state name="spinbox" from="textedit" />
                            <state name="combobox" from="textedit" />
                            <state name="button">
                                <area>0,0,100%,100%</area>
                            </state>
                        </statetype>
                        <!-- we can not put more than one textarea with the same name
                            The textarea can no be in a custom state 
                            We can not put the textarea in a state from statetype neither
                            Which mean we can not theme them differently according to the statetype
                        -->
                        <textarea name="value">
                            <area>5,0,100%-35,100%</area>
                            <font>basesmall</font>
                            <cutdown>yes</cutdown>
                            <align>right,vcenter</align>
                        </textarea>
                    </group>

                    <statetype name="buttoncheck">
                        <position>100%-56,50%-15</position>
                        <state type="off">
                            <imagetype name="checkoff">
                                <filename>images/unchecked.png</filename>
                            </imagetype>
                        </state>
                        <state type="half">
                            <imagetype name="checkhalf">
                                <filename>images/checked.png</filename>
                            </imagetype>
                        </state>
                        <state type="full">
                            <imagetype name="checkfull">
                                <filename>images/checked_selected.png</filename>
                            </imagetype>
                        </state>
                    </statetype>

                    <imagetype name="buttonarrow">
                        <position>100%-20,50%-8</position>
                        <filename>images/lists_right_arrow.png</filename>
                    </imagetype>
                </state>
 
               <state name="selectedactive" from="active">
                    <area>0,0,1224,64</area>
                    <group name="select_bar" from="base_select_bar_selectedactive_group">
                        <area>0,0,100%,100%</area>
                    </group>

                    <imagetype name="parentarrow">
                        <position>5,50%-15</position>
                        <filename>images/lists_left_arrow_large.png</filename>
                    </imagetype>

                    <textarea name="buttontext">
                        <area>25,0,1194,64</area>
                        <font>basesmallyellow</font>
                        <align>left,vcenter</align>
                        <scroll direction="horizontal" />
                    </textarea>

                    <group name="widgets">
                        <statetype name="widgettype">
                            <state name="textedit">
                                <area>0,0,100%,100%</area> 
                                <group name="texteditgroup" from="base_textedit_select_bar_selectedactive_group">
                                    <area>0,5%,100%,95%</area>
                                </group>
                            </state>
                            <state name="filebrowser">
                                <area>0,0,100%,100%</area>
                                <group name="filebrowsergroup" from="base_textedit_select_bar_selectedactive_group">
                                    <area>0,5%,100%,95%</area>
                                </group>
                            </state>
                            <state name="spinbox" from="textedit" />
                            <state name="combobox" from="textedit" />
                            <state name="standard">
                                <area>0,0,100%,100%</area>
                                <group name="buttongroup" from="base_textedit_select_bar_selectedactive_group">
                                    <area>100%-150,5%,100%,95%</area>
                                </group>
                                <textarea name="buttonpress">
                                    <area>100%-150,0,100%,100%</area>
                                    <font>basesmallyellow</font>
                                    <cutdown>yes</cutdown>
                                    <align>allcenter</align>
                                    <value>OK</value>
                                </textarea>
                            </state>
                        </statetype>
                        <textarea name="value">
                            <font>basesmallyellow</font>
                            <scroll direction="horizontal" />
                        </textarea>
                    </group>

                    <statetype name="buttoncheck">
                       <shape name="select_bar_top_highlight">
                            <area>0,-1,100%,2</area>
                            <type>box</type>
                            <fill style="gradient">
                                <gradient direction="horizontal" alpha="255">
                                    <stop position="0" color="#000000"/>
                                    <stop position="50" color="#d6d6d6"/>
                                    <stop position="100" color="#000000"/>
                                </gradient>
                            </fill>
                        </shape>
                        <shape name="select_bar_bottom_highlight">
                            <area>0,100%-1,100%,2</area>
                            <type>box</type>
                            <fill style="gradient">
                                <gradient direction="horizontal" alpha="255">
                                    <stop position="0" color="#000000"/>
                                    <stop position="50" color="#d6d6d6"/>
                                    <stop position="100" color="#000000"/>
                                </gradient>
                            </fill>
                        </shape>
                        <shape name="select_bar_left_highlight">
                            <area>-1,0,2,100%</area>
                            <type>box</type>
                            <fill style="gradient">
                                <gradient direction="vertical" alpha="255">
                                    <stop position="0" color="#000000"/>
                                    <stop position="50" color="#3a9aff"/>
                                    <stop position="100" color="#000000"/>
                                </gradient>
                            </fill>
                        </shape>
                        <shape name="select_bar_right_highlight">
                            <area>100%-1,0,2,100%</area>
                            <type>box</type>
                            <fill style="gradient">
                                <gradient direction="vertical" alpha="255">
                                    <stop position="0" color="#000000"/>
                                    <stop position="50" color="#3a9aff"/>
                                    <stop position="100" color="#000000"/>
                                </gradient>
                            </fill>
                        </shape>
                    </statetype>

                    <imagetype name="buttonarrow">
                        <position>100%-23,50%-15</position>
                        <filename>images/lists_right_arrow_large.png</filename>
                    </imagetype>
                </state>
                <state name="disabledactive" from="active">
                    <textarea name="buttontext">
                        <font>basesmalllightgrey</font>
                    </textarea>
                    <group name="widgets">
                        <textarea name="value">
                            <font>basesmalllightgrey</font>
                        </textarea>
                    </group>
                </state>
                <state name="disabledinactive" from="disabledactive">
                </state>
                <state name="selectedinactive" from="active">
                </state>
            </statetype>
            <statetype name="upscrollarrow">
                <position>1186,479</position>
            </statetype>
            <statetype name="downscrollarrow">
                <position>1206,479</position>
            </statetype>
        </buttonlist>

        <!-- optional, display the help for the currently selected setting -->
        <textarea name="selectedsettinghelp" from="basetextarea">
            <area>44,545,1192,55</area>
            <font>basesmallyellow</font>
            <align>allcenter</align>
            <multiline>yes</multiline>
            <scroll direction="up" rate="20" startdelay="5"/>
        </textarea>

        <!-- optional, display the help for the current group of settings -->
        <textarea name="grouphelp" from="basetextarea">
            <area>44,618,1192,55</area>
            <font>basesmall</font>
            <align>allcenter</align>
            <multiline>yes</multiline>
            <scroll direction="up" rate="20" startdelay="5"/>
        </textarea>

    </window>

    <window name="terminal">
        <textarea name="heading" from="base_heading">
            <value>Terminal</value>
        </textarea>

        <shape name="terminal-backdrop" from="base_backdrop">
            <area>115,36,1050,488</area>
        </shape>

        <shape name="terminal-backdrop-line" from="base_backdrop_line">
            <area>116,37,1048,486</area>
        </shape>

        <shape name="terminal-top-line" from="base_highlight_line">
            <area>117,38,1046,2</area>
        </shape>

        <shape name="terminal-bottom-line" from="base_highlight_line">
            <area>117,520,1046,2</area>
        </shape>

        <shape name="terminal-left-line" from="base_highlight_vertical_line">
            <area>117,40,2,500</area>
        </shape>

        <shape name="terminal-right-line" from="base_highlight_vertical_line">
            <area>1161,40,2,500</area>
        </shape>

        <shape name="terminal-arrows-backdrop" from="base_arrows_backdrop">
            <area>1112,523,50,12</area>
        </shape>

        <shape name="terminal-bottom-backdrop" from="base_backdrop">
            <area>115,534,1050,151</area>
        </shape>

        <shape name="terminal-bottom-backdrop-line" from="base_backdrop_line">
            <area>116,535,1048,149</area>
        </shape>

        <shape name="terminal-bottom-top-line" from="base_highlight_line">
            <area>117,536,1046,2</area>
        </shape>

        <shape name="terminal-bottom-bottom-line" from="base_highlight_line">
            <area>117,681,1046,2</area>
        </shape>

        <shape name="terminal-bottom-left-line" from="base_highlight_vertical_line">
            <area>117,538,2,143</area>
        </shape>

        <shape name="terminal-bottom-right-line" from="base_highlight_vertical_line">
            <area>1161,538,2,143</area>
        </shape>

        <shape name="terminal-bottom-seperator-first-line" from="base_line">
            <area>138,620,1004,2</area>
        </shape>

        <buttonlist name="output" from="base_list">
            <area>123,44,1034,488</area>
            <statetype name="buttonitem">
                <state name="active">
                    <area>0,0,1034,30</area>
                    <textarea name="buttontext">
                        <area>8,0,1018,30</area>
                        <font>basesmaller</font>
                    </textarea>
                </state>
                <state name="selectedactive">
                    <area>0,0,1034,64</area>
                    <textarea name="buttontext">
                        <area>8,0,1018,64</area>
                        <align>vcenter</align>
                        <multiline>yes</multiline>
                    </textarea>
                </state>
                <state name="selectedinactive">
                    <area>0,0,1034,64</area>
                    <textarea name="buttontext">
                        <area>8,0,1018,64</area>
                        <align>vcenter</align>
                        <multiline>yes</multiline>
                    </textarea>
                </state>
            </statetype>
            <statetype name="upscrollarrow">
                <position>997,481</position>
            </statetype>
            <statetype name="downscrollarrow">
                <position>1017,481</position>
            </statetype>
        </buttonlist>
        <textedit name="textedit" from="base_textedit">
             <area>139,558,1003,42</area>
        </textedit>
        <button name="enter" from="base_button">
            <area>540,631,200,40</area>
            <value>Enter</value>
        </button>
    </window>
</mythuitheme>