[mythtv] New theme "sleek"
joelf at altelco.net
Sat Nov 15 00:51:40 EST 2003
Originally I thought it was already implimented. I guess I was right,
but I can't seem to get it to work. For instance:
<textarea name="ititle" align="vcenter" draworder="6">
<value>%TITLE%%SUBTITLE| - ||%</value>
Putting that in there instead of the title textarea doesn't seem to
work. All I get is the regexp spit back at me. Any ideas as to why? The
textarea is in the playback window, watch recordings screen.
As for the tabs, they seem to be turned into spaces. Line feeds do work.
Chris Pinkham wrote:
>>One other comment on the theming code in myth. Is it possible to add
>>some of the text formating stuff that's in the osd code? For instance I
>>would like to combine some of the things in to one textarea. Something
>>[%CHANNELNUM%] - %CHANNELNAME%%SPACE(200)%%RECORDINGTYPE%
>>With the ability to add codes like %TAB% and %BR%. Or something like
>>that. It would also be nice to group tags, so that if one of them is
>>zero length (ie. doesn't exist) then the whole group is omitted.
> I haven't tried this, but can't you just put a real tab and/or linefeed
> in the theme file and get them to display?
>>%TITLE% %(- %SUBTITLE%)%
>>In that example the - %SUBTITLE% would be omitted from the final string
>>if the subtitle doesn't exist.
> This is already supported as well since about 3-4 weeks ago when I
> committed a patch by David Engel.
> The format is: %FIELD|prefix|suffix|ifnull%
> So in your example above, you'd want this:
> %TITLE%%SUBTITLE| - ||%
> So the prefix is " - " and only is displayed if the value is non-empty.
> The suffix is empty in the definition.
> The 'ifnull' is empty since you don't want to display anything if the
> value is empty.
> Prefix, suffix, and ifnull are all optional fields.
> Search in the mythtv-dev mailing list for a thread entitled
> "[PATCH] OSD regexp substitution" for more examples. It was around
> October 22nd.
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
More information about the mythtv-dev