Theming Mythnews - news-ui.xml

From MythTV Official Wiki
Jump to: navigation, search

This page is meant to be used as a "cheater's reference" with Theming MythNews

<mythuitheme>

    <window name="news">

        <buttonlist name="siteslist" from="newsbuttonlist">
            <area>20,20,200,300</area>
            <showarrow>yes</showarrow>
        </buttonlist>

        <buttonlist name="articleslist" from="newsbuttonlist">
            <area>250,20,530,300</area>
            <showarrow>no</showarrow>
        </buttonlist>

        <textarea name="nosites">
            <area>100,100,600,150</area>
            <font>newsfont</font>
            <align>allcenter</align>
            <multiline>yes</multiline>
            <value>No sites are defined, add a site to begin...</value>
        </textarea>
            
        <textarea name="title">
            <area>20,350,670,35</area>
            <font>newsfont</font>
            <multiline>yes</multiline>
        </textarea>
        
        <textarea name="description">
            <area>20,390,570,150</area>
            <font>newsfont</font>
            <multiline>yes</multiline>
        </textarea>
        
        <textarea name="updated">
            <area>20,540,300,35</area>
            <font>newsfont</font>
        </textarea>

        <imagetype name="background">
            <filename>news-info-bg.png</filename>
            <position>0,340</position>
        </imagetype>

        <imagetype name="thumbnail">
            <area>600,390,160,120</area>
            <preserveaspect>true</preserveaspect>
        </imagetype>

        <imagetype name="enclosures">
            <filename>enclosures.png</filename>
            <position>705,350</position>
        </imagetype>

        <imagetype name="download">
            <filename>need-download.png</filename>
            <position>740,350</position>
        </imagetype>

        <imagetype name="ispodcast">
            <filename>podcast.png</filename>
            <position>740,350</position>
        </imagetype>

    </window>

    <window name="editor">
            
        <textarea name="title">
            <font>newsfont</font>
            <area>120,150,100,30</area>
            <align>right,vcenter</align>
        </textarea>

        <textedit name="name" from="newstextedit">
            <position>235,140</position>
        </textedit>

        <textarea name="urllabel">
            <font>newsfont</font>
            <area>120,250,100,30</area>
            <align>right,vcenter</align>
        </textarea>

        <textedit name="url" from="newstextedit">
            <position>235,240</position>
        </textedit>

        <textarea name="iconlabel">
            <font>newsfont</font>
            <area>120,350,100,30</area>
            <align>right,vcenter</align>
        </textarea>
        
        <textedit name="icon" from="newstextedit">
            <position>235,340</position>
        </textedit>
            
        <checkbox name="podcast_check" from="newscheckbox">
            <position>340,465</position>
        </checkbox>
            
        <textarea name="podcast_text">
            <font>newsfont</font>
            <area>380,465,500,50</area>
        </textarea>
    
        <button name="cancel" from="newsbutton">
            <position>60,480</position>
            <value>Cancel</value>
        </button>
            
        <button name="ok" from="newsbutton">
            <position>590,480</position>
            <value>Ok</value>
        </button>
        
    </window>

    <window name="config">

        <buttonlist name="category" from="basebuttonlist">
            <area>20,40,300,515</area>
            <showarrow>yes</showarrow>
        </buttonlist>

        <buttonlist name="sites" from="basebuttonlist">
            <area>340,40,440,515</area>
        </buttonlist>

        <textarea name="context_switch" from="basetextarea">
            <area>20,550,760,50</area>
            <multiline>yes</multiline>
        </textarea>

        <textarea name="help" from="basetextarea">
            <area>20,500,760,150</area>
            <multiline>yes</multiline>
        </textarea>

    </window>

</mythuitheme>