[mythtv] [patch] New theme tags

Anduin Withers awithers at anduin.com
Wed Jan 26 23:23:05 EST 2005


In preparation for .17 I thought I'd go through Titivillus and patch it up
so it didn't clip things all over.

I quickly remembered why I hate themes.

Attached is a patch which adds two new tag types (recognized in containers
only to keep the patch smaller) and adding a new attribute to container.

<container bounds="x,y,w,h">
  <group area="x,y,w,h">
    <style name="testfont">
      <font>testfont</font>
    </style>
    <style name="testlabel" inherit="testfont">
        <area>0,5,100,50</area>
    </style>
    <style name="testlabel2" inherit="testlabel">
        <area>0,5,*,*</area>
    </style>    
    <textarea blah class="testlabel2"/>
   </group>
</container>

In the above the textarea will have testfont and an area of 0,5,100,50.

Items in groups have positions relative to the group, once items are grouped
it makes moving grouped items trivial.

There is some minor unrelated cleanup in there as well (mostly calling
scalePoint rather than doing it everywhere).

In the attached file are two patches and two new files. The patches are to
xmlparse to add support for the new tags, and to weather-ui.xml to show how
it works (and if accepted to be the first of the patches).

It shouldn't break parsing of existing theme files.

-- 
Anduin Withers


-------------- next part --------------
A non-text attachment was scrubbed...
Name: stylepatch.tar.bz2
Type: application/octet-stream
Size: 9698 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050126/aea9c07d/stylepatch.tar.obj


More information about the mythtv-dev mailing list