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

Mailing List Archive: MythTV: Theming

Textedit sizing

 

 

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


otto at kolsi

Jul 15, 2009, 10:06 PM

Post #1 of 4 (1580 views)
Permalink
Textedit sizing

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:

<textedit name="year" from="basetextedit">
<position>370,230</position>
</textedit>

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 :)
--
Otto
_______________________________________________
mythtv-theming mailing list
mythtv-theming [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming


robert.mcnamara at gmail

Jul 15, 2009, 10:13 PM

Post #2 of 4 (1484 views)
Permalink
Re: Textedit sizing [In reply to]

On Wed, Jul 15, 2009 at 10:06 PM, Otto Kolsi <otto [at] kolsi> wrote:

>
> 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:
>
> <textedit name="year" from="basetextedit">
> <position>370,230</position>
> </textedit>
>
> 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 :)
>

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.

Example using your naming, resized to random size of 100x25:

<textedit name="year" from="basetextedit">
<area>0,0,100,25</area>
<statetype name="background">
<state name="active">
<imagetype name="background">
<area>0,0,100,25</area>
</imagetype>
</state>
<state name="selected">
<imagetype name="background">
<area>0,0,100,25</area>
</imagetype>
</state>
<state name="inactive">
<imagetype name="background">
<area>0,0,100,25</area>
</imagetype>
</state>
</statetype>
<imagetype name="cursor">
<filename>images/cursor.png</filename>
</imagetype>
<textarea name="text">
<area>3,5,94,22</area>
</textarea>
</textedit>

Robert


otto at kolsi

Jul 15, 2009, 11:31 PM

Post #3 of 4 (1493 views)
Permalink
Re: Textedit sizing [In reply to]

Robert McNamara wrote:
> 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.
>
> Example using your naming, resized to random size of 100x25:

Thanks, I'll try that.

Another sizing related question. MythNews (with MythCenter and
MythCenter-wide) does not utilize full screen width while showing news
article title list. Titles are cut too early with "some tex..." -endings.

This can be "fixed" in default/base.xml under "basebuttonlist". There
"buttontext" is defined to go only until 90% of the area. Changing this
to 97-98% makes MythNews work better. But I suspect this would break
several other places since this is the base.xml? And correct approach
would be to redefine new buttonlist component in MythNews theme xml?
--
Otto
_______________________________________________
mythtv-theming mailing list
mythtv-theming [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming


robert.mcnamara at gmail

Jul 15, 2009, 11:39 PM

Post #4 of 4 (1485 views)
Permalink
Re: Textedit sizing [In reply to]

On Wed, Jul 15, 2009 at 11:31 PM, Otto Kolsi <otto [at] kolsi> wrote:

>
> This can be "fixed" in default/base.xml under "basebuttonlist". There
> "buttontext" is defined to go only until 90% of the area. Changing this to
> 97-98% makes MythNews work better. But I suspect this would break several
> other places since this is the base.xml? And correct approach would be to
> redefine new buttonlist component in MythNews theme xml?
>

Yes. This would break the occasions where the buttonlist is used in a
buttontree and has the right arrow indicator.

And yes, you can redefine the buttons where that is not the case (or define
a second inheritable buttonlist type to use in these cases)

Robert

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