[mythtv-theming] New MythTV notification center and theme...

Jean-Yves Avenard jyavenard at gmail.com
Sat Jul 6 12:37:54 UTC 2013


Hi


On 6 July 2013 17:27, Elkin Fricke <managementboy at gmail.com> wrote:

> Hi
>
> I would like to ask for the "template" feature to be added to the
> notification-ui.
>
> This is what I would like to be able to do:
>
>     <textarea name="description_without_progress" from="basetextarea"
> depends="!progress_text">
>       <area>15,30,890,120</area>
>       <template>%DESCRIPTION%</template>
>     </textarea>
>
>     <textarea name="description_with_progress" from="basetextarea"
> depends="progress_text">
>       <area>15,30,890,36</area>
>       <template>%DESCRIPTION%</template>
>     </textarea>
>
>
I've added support for templates, now the following keywords are available
for use in all elements:
%TITLE%, %IMAGE% (contains the path provided if any), %ORIGIN%,
%DECRIPTION%, %EXTRA%, %PROGRESS_TEXT%, %PROGRESS%

%PROGRESS% contains the current progress in percentage (value between 0 and
100).

There's one problem however, and currently what you're referring is
possible. In MythUI, the templates map is applied to a MythUIText object,
only if the name of the element is contained in the map.
e.g the template will be use only of the name of you element is one of
those:
title, image, origin, description, extra or progress_text

it won't be applied on an object with the name
"description_without_progress"...
This would require a change to the MythUI core

Jean-Yves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-theming/attachments/20130706/3f1aa0c1/attachment.html>


More information about the mythtv-theming mailing list