
stuart at tase
Sep 24, 2009, 4:56 PM
Post #2 of 3
(550 views)
Permalink
|
|
Re: MythUIProgressBar width/height problem?
[In reply to]
|
|
On Thursday 24 Sep 2009 23:53:43 Nigel Pearson wrote: > Trying to add PlaybackBox's usedbar in a theme: > gives me a bar in the specified position, > but it is always about 500x60 in size. > > The one in base.xml is <area>0,0,10,10</area>, > so I can't see this as an inheritance thing. > > Any suggestions before I start dissecting code? The images which make up the widget are 536x38, they aren't automatically stretched when you resize the widget unless you added an <area>0,0,100%,100%</area> to those imagetypes. The reason why they aren't auto scaled using percentage values is that the results would be pretty horrific, rounded images don't stretch well. You have two choices, either create new images or override the sizes in your new definition. e.g. <progressbar name="baseprogressbar"> <area>24,535,375,45</area> <layout>horizontal</layout> <style>reveal</style> <imagetype name="background"> <area>0,0,100%,100%</area> <!-- or 375,45 --> <filename>progressbar_background.png</filename> </imagetype> <imagetype name="progressimage"> <area>0,0,100%,100%</area> <!-- or 375,45 --> <filename>progressbar_fill.png</filename> </imagetype> </progressbar> I should probably modify the progress bar to accept shapes in addition to images but I don't have the time. -- Stuart Morgan _______________________________________________ mythtv-dev mailing list mythtv-dev [at] mythtv http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
|