Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

MythUIProgressBar width/height problem?

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


nigel at ind

Sep 24, 2009, 3:53 PM

Post #1 of 3 (629 views)
Permalink
MythUIProgressBar width/height problem?

Trying to add PlaybackBox's usedbar in a theme:

% cat recordings-ui.xml
...
<progressbar name="usedbar" from="baseprogressbar">
<area>24,535,375,45</area>
</progressbar>




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?

--
Nigel Pearson, nigel [at] ind| 4 8 |
Telstra Net. Eng., Sydney, Australia | 15 16 |
Office: 9202 3900 Fax: 9212 6348 | 23 42 |
Mobile: 0408 664435 Home: 9792 6998 | Lost |




_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


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


nigel at ind

Sep 24, 2009, 7:52 PM

Post #3 of 3 (551 views)
Permalink
Re: MythUIProgressBar width/height problem? [In reply to]

> 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.

Aah. Thanks, that explains it.


Interestingly, the <area>...100%</area> you added to base
works for the progressimage, but not for the background.


Looks like I will have to hack the code after all :-(

--
Nigel Pearson, nigel [at] ind|"Look at this! |
Telstra Net. Eng., Sydney, Australia | Do you think I put this in|
Office: 9202 3900 Fax: 9212 6348 | to get better reception? |
Mobile: 0408 664435 Home: 9792 6998 | Batty - Fern Gully |

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.