[mythtv-theming] Placing semi-transparent box under status icons (ie auto expire)

Stuart Morgan stuart at tase.co.uk
Mon Aug 26 12:31:38 UTC 2013


On Monday 26 Aug 2013 21:03:42 Mark Perkins wrote:
> On 25/08/13 16:56, Mark Perkins wrote:
> > Hi again, looking to be able to place a semi-transparent shape
> > underneath the status icons that appears / disappears when the status
> > icons appear / disappear, similar to the arrangement with the
> > coverart. However I cannot make the group disappear no matter what I
> > try. The status icon appears / disappears depending on the recording
> > but the shape remains no matter what. Xml code is as follows:
> > 
> > <group name="buttongroup">
> > 
> > <area>853,633,427,107</area>
> > 
> > <minsize vanish="yes">100%,100%</minsize>
> > 
> > <shape name="groupbox2">
> > 
> > <area>0,0,427,107</area>
> > 
> > <type>roundbox</type>
> > 
> > <fill color="#000000" alpha="0" />
> > 
> > <line color="#FFFFFF" alpha="0" width="0" />
> > 
> > <cornerradius>1</cornerradius>
> > 
> > <minsize vanish="yes">100%,100%</minsize>
> > 
> > </shape>
> > 
> > <imagetype name="autoexpire">
> > 
> > <area>10,10,32,32</area>
> > 
> > <filename>type/autoexpire.png</filename>
> > 
> > <!--position>10,15</position>-->
> > 
> > <minsize vanish="yes">100%,100%</minsize>
> > 
> > </imagetype>
> > 
> > </group>
> > 
> > Again any assistance possible would be greatly appreciated,
> > Mythfrontend 0.27.
> > 
> > Mark.
> 
> I'm no themer but I think you should be able to use depends="autoexpire"
> like this
> 
>              <shape name="groupbox2 depends="autoexpire"">
>                  <area>0,0,427,107</area>
>                  <type>roundbox</type>
>                  <fill color="#000000" alpha="0" />
>                  <line color="#FFFFFF" alpha="0" width="0" />
>                  <cornerradius>1</cornerradius>
>                  <minsize vanish="yes">100%,100%</minsize>
>              </shape>
> 
> which should show the groupbox2 widget only if the autoexpire widget is
> visible.
> 
> Paul H.
> 
> Paul, thanks very much for the pointer. I couldn't get 'depends' to work
> with shapes

Note that in Paul's example one of the quote marks has been misplaced:

<shape name="groupbox2 depends="autoexpire"">

should be:

<shape name="groupbox2" depends="autoexpire">
-- 
Stuart Morgan
MythTV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-theming/attachments/20130826/64c48f14/attachment.html>


More information about the mythtv-theming mailing list