[mythtv-commits] [MythTV/mythtv] 0b9c9c: Theme: Allow use of [font]fontname[/font] in temp...
John Poet
noreply at github.com
Sun May 26 22:45:19 UTC 2019
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 0b9c9c55a05acba2e45e3e13c3962cf266031ef9
https://github.com/MythTV/mythtv/commit/0b9c9c55a05acba2e45e3e13c3962cf266031ef9
Author: John Poet <jpoet at mythtv.org>
Date: 2019-05-23 (Thu, 23 May 2019)
Changed paths:
M mythtv/libs/libmythui/mythpainter.cpp
M mythtv/libs/libmythui/mythuitext.cpp
M mythtv/libs/libmythui/mythuitext.h
Log Message:
-----------
Theme: Allow use of [font]fontname[/font] in templates.
For efficiency, the themer must set the format attribute to "true" to enable
the extra processing.
Careful: If the [font]name[/font] is inside of a %|FIELD|% block, and that
field does not exist, then font specificaton will also be removed -- BEFORE
it can be processed.
Examples:
<template format="true">[font]verysmall[/font]%(|s00e00|) %%|RATING|
%%|(STARS|) %[font]descfont[/font]%DESCRIPTION%</template>
<template format="true">[font]baseverysmal[/font]%(|s00e00|) %%|RATING|
%%|(STARS|)%[font]baselarge[/font]%DESCRIPTION%%
\n\n[font]basemedium[/font]Part |PARTNUMBER| of %%PARTTOTAL%</template>
More information about the mythtv-commits
mailing list