<br><br><div class="gmail_quote">On Wed, Jul 15, 2009 at 10:06 PM, Otto Kolsi <span dir="ltr"><<a href="mailto:otto@kolsi.fi">otto@kolsi.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
While working on MythMusic CD rip screen alignments (#6607), I tried to make the textedit for year smaller. In music-ui.xml this is defined now like this:<br>
<br>
<textedit name="year" from="basetextedit"><br>
<position>370,230</position><br>
</textedit><br>
<br>
I changed "position" element to "area" and tried different sizes but that didn't seem to work. What's the way to make the year edit in this case smaller? This should be fairly easy stuff, but I don't know much about theming or MythUI as you can see :)<br>
<font color="#888888"></font></blockquote><div><br>To resize the textedit, you need to redefine the size of each element of it. See base.xml's definition of basetext. You can still inherit from basetextedit, but you'll need to also define the background area, etc.<br>
<br>Example using your naming, resized to random size of 100x25:<br></div></div><br> <textedit name="year" from="basetextedit"><br> <area>0,0,100,25</area> <br> <statetype name="background"><br>
<state name="active"><br> <imagetype name="background"><br> <area>0,0,100,25</area> <br> </imagetype><br> </state><br>
<state name="selected"><br> <imagetype name="background"><br> <area>0,0,100,25</area><br> </imagetype><br> </state><br>
<state name="inactive"><br> <imagetype name="background"><br> <area>0,0,100,25</area><br> </imagetype><br> </state><br>
</statetype><br> <imagetype name="cursor"><br> <filename>images/cursor.png</filename><br> </imagetype><br> <textarea name="text"><br>
<area>3,5,94,22</area><br> </textarea><br> </textedit><br><br>Robert<br>