vdr-plugin-skindesigner/skins/estuary4vdr/xmlfiles/plug-weatherforecast-weatherforecastdetailhourly.xml
2016-04-17 09:29:54 +02:00

50 lines
3.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE menuplugin SYSTEM "../../../dtd/displaymenuplugin.dtd">
<menuplugin x="0" y="0" width="100%" height="100%" fadetime="0">
<background>
<area x="0" y="0" width="100%" height="100%" layer="1">
<drawimage imagetype="skinpart" x="0" y="0" width="100%" height="100%" path="background_menu" />
</area>
<area x="2%" y="10%" width="96%" height="75%" layer="2">
<fill color="{menuback}" />
<drawrectangle x="0" y="16%" width="100%" height="1" color="{menubackline}" />
<drawrectangle x="0" y="{areaheight}-1" width="100%" height="1" color="{menubackline}" />
</area>
</background>
<header>
<area x="0" y="0" width="1" height="1" layer="1">
<fill color="{clrTransparent}" />
</area>
</header>
<scrollbar>
<area x="97%" y="23%" width="{areawidth}*0.01" height="61%" layer="3">
<drawrectangle x="0" y="{areaheight} * {offset} / 1000" width="100%" height="{areaheight} * {height} / 1000" color="{progressbar}" />
</area>
</scrollbar>
<detailheader>
<area x="3%" y="11%" width="95%" height="10%" layer="3">
<drawtext x="20" valign="center" font="{regular}" fontsize="50%" color="{fontdefault}" text="{menuheader}" />
<drawimage name="icon" imagetype="icon" path="{icon}" align="right" valign="center" width="{areaheight}" height="{areaheight}"/>
</area>
</detailheader>
<tab name="current" x="3%" y="23%" width="94%" height="61%" layer="4" scrollheight="{areaheight}/4">
<drawtextbox name="summary" x="0" y="2%" width="{areawidth}" font="{regular}" fontsize="7%" color="{fontdefault}" text="{summary}" />
<drawrectangle x="0" y="{posy(summary)} + {height(summary)} + 10" width="{areawidth}" height="1" color="{menubackline}" />
<loop name="hourly" x="0" y="{posy(summary)} + {height(summary)} + 10" orientation="vertical" columnwidth="{areawidth}" rowheight="{areaheight}/5">
<drawtext x="0" font="{regular}" fontsize="9%" valign="center" color="{fontdefault}" text="{hourly[timestamp]}" />
<drawimage imagetype="icon" path="{hourly[icon]}" x="1.5*{rowheight}" valign="center" width="{rowheight}*0.8" height="{rowheight}*0.8"/>
<drawtext name="temp" x="3.5*{rowheight} - {width(temp)}/2" font="{regular}" fontsize="10%" y="2%" color="{fontdefault}" text="{hourly[temperature]}°C" />
<drawtext name="felt" x="3.5*{rowheight} - {width(felt)}/2" font="{regular}" fontsize="6%" y="{rowheight}*0.55" color="{fontdefault}" text="{tr(felt)} {hourly[apparenttemperature]}°C" />
<drawtext x="5*{rowheight}" font="{regular}" fontsize="{rowheight}/3" y="0" width="{columnwidth} - 4*{rowheight}" color="{fontdefault}" text="{hourly[summary]}" />
<drawtext x="5*{rowheight}" font="{regular}" fontsize="{rowheight}/3" y="{rowheight}/3" width="{columnwidth} - 4*{rowheight}" color="{fontdefault}" text="{tr(precipitationprobability)} {hourly[precipitationprobability]}%, {hourly[precipitationintensity]} l/qm" />
<drawtext x="5*{rowheight}" font="{regular}" fontsize="{rowheight}/3" y="{rowheight}*2/3" width="{columnwidth} - 4*{rowheight}" color="{fontdefault}" text="{tr(windspeed)} {hourly[windspeed]} km/h {tr(from)} {hourly[windbearingstring]}" />
<drawrectangle x="0" y="{rowheight} - 1" width="{columnwidth}" height="1" color="{menubackline}" />
</loop>
</tab>
</menuplugin>