mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
some more nopacity optimizations - thanx@utility
This commit is contained in:
parent
ca4793ef4b
commit
304f592004
1
HISTORY
1
HISTORY
@ -192,3 +192,4 @@ Version 0.2.1
|
||||
|
||||
- fixed bug that global tokens were not parsed correctly
|
||||
- added finnish translation
|
||||
- some more nopacity optimizations - thanx@utility
|
||||
|
43
skins/nopacity/setup.xml
Normal file
43
skins/nopacity/setup.xml
Normal file
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE setup SYSTEM "../../dtd/setup.dtd">
|
||||
|
||||
<setup>
|
||||
<!--
|
||||
define all your parameters here which should be configurable via
|
||||
OSD and the skindesigner setup menu.
|
||||
Parameters must have type "bool" or "integer". For "bool" Parameters
|
||||
a choice yes/no is shown in the setup menu, a "integer" parameter
|
||||
can be configured to a value between "min" and "max". If "min" is not
|
||||
set, "0" is the minimum, if "max" is not set, "1000" is maximum.
|
||||
"displayname" is used to display the option in the setup menu.
|
||||
The configured parameter value is the default value.
|
||||
-->
|
||||
<parameters>
|
||||
<parameter type="bool" name="showposter" displaytext="{tr(showpostertext)}">1</parameter>
|
||||
<parameter type="bool" name="showweather" displaytext="{tr(showweather)}">1</parameter>
|
||||
<parameter type="int" name="fadeTime" min="0" max="1000" displaytext="{tr(fadeText)}">300</parameter>
|
||||
<parameter type="int" name="transparency" min="0" max="30" displaytext="{tr(transparency)}">20</parameter>
|
||||
</parameters>
|
||||
|
||||
<!--
|
||||
translations of displaytexts
|
||||
-->
|
||||
<translations>
|
||||
<token name="tr(showpostertext)">
|
||||
<trans lang="en_EN">Show Poster when switching channel</trans>
|
||||
<trans lang="de_DE">Poster beim Umschalten anzeigen</trans>
|
||||
</token>
|
||||
<token name="tr(showweather)">
|
||||
<trans lang="en_EN">Show Weather in infobar</trans>
|
||||
<trans lang="de_DE">Wetter in Infobar anzeigen</trans>
|
||||
</token>
|
||||
<token name="tr(fadeText)">
|
||||
<trans lang="en_EN">Fade time in ms (needs VDR restart)</trans>
|
||||
<trans lang="de_DE">Einblendzeit in ms (erfordert VDR Neustart)</trans>
|
||||
</token>
|
||||
<token name="tr(transparency)">
|
||||
<trans lang="en_EN">Transpareny channel, replay and volume (needs VDR restart)</trans>
|
||||
<trans lang="de_DE">Transparenz bei Kanal,Wiedergabe und Lautstärke (erfordert VDR Neustart)</trans>
|
||||
</token>
|
||||
</translations>
|
||||
</setup>
|
@ -11,6 +11,7 @@
|
||||
<color name="clrTransWhite">99FFFFFF</color>
|
||||
<color name="clrBlack">FF000000</color>
|
||||
<color name="clrProgressbar">FF3D0000</color>
|
||||
<color name="clrScrollbar">FF3D0000</color>
|
||||
<color name="clrBorder">FF2B0000</color>
|
||||
<color name="clrGray">FF858585</color>
|
||||
<color name="clrBackground">B0000000</color>
|
||||
@ -23,6 +24,5 @@
|
||||
<color name="clrTransparent">00000000</color>
|
||||
</colors>
|
||||
<variables>
|
||||
<var type="int" name="fadeTime">300</var>
|
||||
</variables>
|
||||
</globals>
|
||||
|
@ -11,6 +11,7 @@
|
||||
<color name="clrTransWhite">99FFFFFF</color>
|
||||
<color name="clrBlack">FF000000</color>
|
||||
<color name="clrProgressbar">FF8EAB21</color>
|
||||
<color name="clrScrollbar">FF8EAB21</color>
|
||||
<color name="clrBorder">FF4C5C11</color>
|
||||
<color name="clrGray">FF858585</color>
|
||||
<color name="clrBackground">B012273F</color>
|
||||
@ -23,6 +24,5 @@
|
||||
<color name="clrTransparent">00000000</color>
|
||||
</colors>
|
||||
<variables>
|
||||
<var type="int" name="fadeTime">300</var>
|
||||
</variables>
|
||||
</globals>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<displaychannel x="0" y="0" width="100%" height="100%" fadetime="{fadeTime}">
|
||||
|
||||
<background>
|
||||
<area x="1%" y="74%" width="98%" height="25%" layer="1" transparency="20">
|
||||
<area x="1%" y="74%" width="98%" height="25%" layer="1" transparency="{transparency}">
|
||||
<drawimage imagetype="skinpart" path="displaychannelback" x="0" y="0" width="100%" height="100%"/>
|
||||
</area>
|
||||
<area x="1%" y="74%" width="98%" height="25%" layer="7">
|
||||
@ -47,7 +47,7 @@
|
||||
</datetime>
|
||||
|
||||
<currentweather>
|
||||
<area x="60%" y="74%" width="18%" height="6%" layer="2">
|
||||
<area condition="{showweather}" x="60%" y="74%" width="18%" height="6%" layer="2">
|
||||
<drawimage name="weathericon" imagetype="icon" path="{icon}" x="{areawidth}/2 + {width(temperature)}/2 - {width(weathericon)}/2 + 5" valign="center" width="{areaheight}*0.7" height="{areaheight}*0.7"/>
|
||||
<drawtext name="temperature" x="{areawidth}/2 - {width(temperature)}/2 - {width(weathericon)}/2" valign="center" font="{vdrOsd}" fontsize="70%" color="{clrWhite}" text="{temperature}°C" />
|
||||
</area>
|
||||
@ -195,10 +195,10 @@
|
||||
{isbanner} true if image is a banner, false if it is a poster
|
||||
-->
|
||||
<scrapercontent>
|
||||
<area condition="{isbanner}" x="1%" y="1%" width="{areaheight}*0.13*{mediawidth}/{mediaheight}" height="13%" layer="2">
|
||||
<area condition="{showposter}++{isbanner}" x="1%" y="1%" width="{areaheight}*0.13*{mediawidth}/{mediaheight}" height="13%" layer="2">
|
||||
<drawimage imagetype="image" path="{mediapath}" align="center" valign="center" width="{areawidth}" height="{areaheight}"/>
|
||||
</area>
|
||||
<area condition="not{isbanner}" x="1%" y="1%" width="{areaheight}*0.5*{mediawidth}/{mediaheight}" height="50%" layer="2">
|
||||
<area condition="{showposter}++not{isbanner}" x="1%" y="1%" width="{areaheight}*0.5*{mediawidth}/{mediaheight}" height="50%" layer="2">
|
||||
<drawimage imagetype="image" path="{mediapath}" x="5" y="5" width="{areawidth}-10" height="{areaheight}-10"/>
|
||||
</area>
|
||||
</scrapercontent>
|
||||
@ -211,14 +211,14 @@
|
||||
{error} true if message is a error message
|
||||
-->
|
||||
<message>
|
||||
<area x="5%" y="58%" width="90%" height="15%" layer="6">
|
||||
<area x="5%" y="88%" width="90%" height="10%" layer="6">
|
||||
<drawimage condition="{status}" imagetype="skinpart" path="messageStatus" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{info}" imagetype="skinpart" path="messageInfo" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{warning}" imagetype="skinpart" path="messageWarning" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{error}" imagetype="skinpart" path="messageError" x="0" y="0" width="100%" height="100%" />
|
||||
</area>
|
||||
<area x="5%" y="58%" width="90%" height="15%" layer="7">
|
||||
<drawtext align="center" valign="center" font="{light}" fontsize="40%" color="{clrWhite}" text="{text}" />
|
||||
<area x="5%" y="88%" width="90%" height="10%" layer="7">
|
||||
<drawtext align="center" valign="center" font="{light}" fontsize="50%" color="{clrWhite}" text="{text}" />
|
||||
</area>
|
||||
</message>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<area x="30%" y="11%" width="2%" height="78%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
<area x="97%" y="25%" width="2%" height="60%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
<!-- Available Variables in detailheader elements:
|
||||
|
@ -12,7 +12,7 @@
|
||||
<area x="97%" y="25%" width="2%" height="60%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
<!-- Available Variables in detailheader elements:
|
||||
|
@ -12,7 +12,7 @@
|
||||
<area x="97%" y="11%" width="2%" height="79%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
<!-- Available Variables in tab elements:
|
||||
|
@ -49,7 +49,7 @@
|
||||
<area x="30%" y="11%" width="2%" height="78%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<area x="30%" y="11%" width="2%" height="78%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
<area x="30%" y="11%" width="2%" height="78%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<area x="30%" y="11%" width="2%" height="78%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<area x="30%" y="11%" width="2%" height="78%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
@ -14,14 +14,14 @@
|
||||
{error} true if message is a error message
|
||||
-->
|
||||
<message>
|
||||
<area x="5%" y="80%" width="90%" height="15%" layer="6">
|
||||
<area x="5%" y="88%" width="90%" height="10%" layer="6">
|
||||
<drawimage condition="{status}" imagetype="skinpart" path="messageStatus" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{info}" imagetype="skinpart" path="messageInfo" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{warning}" imagetype="skinpart" path="messageWarning" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{error}" imagetype="skinpart" path="messageError" x="0" y="0" width="100%" height="100%" />
|
||||
</area>
|
||||
<area x="5%" y="80%" width="90%" height="15%" layer="7">
|
||||
<drawtext align="center" valign="center" font="{light}" fontsize="40%" color="{clrWhite}" text="{text}" />
|
||||
<area x="5%" y="88%" width="90%" height="10%" layer="7">
|
||||
<drawtext align="center" valign="center" font="{light}" fontsize="50%" color="{clrWhite}" text="{text}" />
|
||||
</area>
|
||||
</message>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<displayreplay x="0" y="0" width="100%" height="100%" fadetime="{fadeTime}">
|
||||
|
||||
<background>
|
||||
<area x="1%" y="74%" width="98%" height="25%" layer="1" transparency="20">
|
||||
<area x="1%" y="74%" width="98%" height="25%" layer="1" transparency="{transparency}">
|
||||
<drawimage imagetype="skinpart" path="displayreplayback" x="0" y="0" width="100%" height="100%"/>
|
||||
</area>
|
||||
<area x="1%" y="74%" width="98%" height="25%" layer="7">
|
||||
@ -204,14 +204,14 @@
|
||||
{error} true if message is a error message
|
||||
-->
|
||||
<message>
|
||||
<area x="5%" y="58%" width="90%" height="15%" layer="6">
|
||||
<area x="5%" y="88%" width="90%" height="10%" layer="6">
|
||||
<drawimage condition="{status}" imagetype="skinpart" path="messageStatus" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{info}" imagetype="skinpart" path="messageInfo" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{warning}" imagetype="skinpart" path="messageWarning" x="0" y="0" width="100%" height="100%" />
|
||||
<drawimage condition="{error}" imagetype="skinpart" path="messageError" x="0" y="0" width="100%" height="100%" />
|
||||
</area>
|
||||
<area x="5%" y="58%" width="90%" height="15%" layer="7">
|
||||
<drawtext align="center" valign="center" font="{light}" fontsize="40%" color="{clrWhite}" text="{text}" />
|
||||
<area x="5%" y="88%" width="90%" height="10%" layer="7">
|
||||
<drawtext align="center" valign="center" font="{light}" fontsize="50%" color="{clrWhite}" text="{text}" />
|
||||
</area>
|
||||
</message>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
-->
|
||||
<volume>
|
||||
<!-- Background -->
|
||||
<area x="0" y="0" width="100%" height="100%" layer="1" transparency="20">
|
||||
<area x="0" y="0" width="100%" height="100%" layer="1" transparency="{transparency}">
|
||||
<drawimage imagetype="skinpart" path="displayvolume" x="0" y="0" width="100%" height="100%"/>
|
||||
</area>
|
||||
<!-- Header -->
|
||||
|
@ -6,7 +6,7 @@
|
||||
<area x="30%" y="11%" width="2%" height="78%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
<area x="97%" y="25%" width="2%" height="60%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
<!-- Available Variables in detailheader and tab:
|
||||
|
@ -15,7 +15,7 @@
|
||||
<area x="97%" y="25%" width="2%" height="60%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
<area x="97%" y="25%" width="2%" height="60%" layer="2">
|
||||
<fill color="{clrBorder}" />
|
||||
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrProgressbar}" />
|
||||
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrScrollbar}" />
|
||||
</area>
|
||||
</scrollbar>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user