optimized some weather templates

This commit is contained in:
louis 2015-01-15 14:03:22 +01:00
parent 635078cbd4
commit 9923616f26
3 changed files with 8 additions and 8 deletions

View File

@ -109,8 +109,8 @@
<loop name="hourly" x="0" y="0" orientation="horizontal" columnwidth="{areawidth}/8" rowheight="{areaheight}" overflow="cut"> <loop name="hourly" x="0" y="0" orientation="horizontal" columnwidth="{areawidth}/8" rowheight="{areaheight}" overflow="cut">
<drawtext align="center" y="0" font="{semibold}" fontsize="15%" color="{clrWhite}" text="{hourly[timestamp]}" /> <drawtext align="center" y="0" font="{semibold}" fontsize="15%" color="{clrWhite}" text="{hourly[timestamp]}" />
<drawimage imagetype="icon" path="{hourly[icon]}" align="center" y="15%" width="{columnwidth}*0.8" height="{columnwidth}*0.8"/> <drawimage imagetype="icon" path="{hourly[icon]}" align="center" y="15%" width="{columnwidth}*0.8" height="{columnwidth}*0.8"/>
<drawtext align="center" y="{columnwidth}*0.8 + {rowheight}*0.2" font="{regular}" fontsize="15%" color="{clrWhite}" text="{hourly[temperature]}°C" /> <drawtext align="center" y="{columnwidth}*0.8 + {rowheight}*0.15" font="{regular}" fontsize="15%" color="{clrWhite}" text="{hourly[temperature]}°C" />
<drawtextbox x="0" y="{columnwidth}*0.8 + {rowheight}*0.4" width="{columnwidth}" maxlines="2" align="center" font="{regular}" fontsize="10%" color="{clrWhite}" text="{hourly[summary]}" /> <drawtextbox x="0" y="{columnwidth}*0.8 + {rowheight}*0.3" width="{columnwidth}" maxlines="2" align="center" font="{regular}" fontsize="10%" color="{clrWhite}" text="{hourly[summary]}" />
<drawimage imagetype="skinpart" path="line_vertical" x="{columnwidth}" y="0" width="2" height="{rowheight}"/> <drawimage imagetype="skinpart" path="line_vertical" x="{columnwidth}" y="0" width="2" height="{rowheight}"/>
</loop> </loop>
</area> </area>
@ -118,8 +118,8 @@
<loop name="daily" x="0" y="0" orientation="horizontal" columnwidth="{areawidth}/7" rowheight="{areaheight}" overflow="cut"> <loop name="daily" x="0" y="0" orientation="horizontal" columnwidth="{areawidth}/7" rowheight="{areaheight}" overflow="cut">
<drawtext align="center" y="0" font="{semibold}" fontsize="14%" color="{clrWhite}" text="{daily[dayname]}" /> <drawtext align="center" y="0" font="{semibold}" fontsize="14%" color="{clrWhite}" text="{daily[dayname]}" />
<drawtext align="center" y="10%" font="{semibold}" fontsize="14%" color="{clrWhite}" text="{daily[day]}" /> <drawtext align="center" y="10%" font="{semibold}" fontsize="14%" color="{clrWhite}" text="{daily[day]}" />
<drawimage imagetype="icon" path="{daily[icon]}" align="center" y="25%" width="{columnwidth}*0.8" height="{columnwidth}*0.8"/> <drawimage imagetype="icon" path="{daily[icon]}" align="center" y="25%" width="{columnwidth}*0.6" height="{columnwidth}*0.6"/>
<drawtext align="center" y="{rowheight}*0.65" font="{regular}" fontsize="11%" color="{clrWhite}" text="{daily[temperaturemin]}°C - {daily[temperaturemax]}°C" /> <drawtext align="center" y="{rowheight}*0.65" font="{regular}" fontsize="13%" color="{clrWhite}" text="{daily[temperaturemin]}°C - {daily[temperaturemax]}°C" />
<drawtextbox x="{columnwidth}*0.02" y="{rowheight}*0.80" width="{columnwidth}*0.96" maxlines="2" align="center" font="{regular}" fontsize="8%" color="{clrWhite}" text="{daily[summary]}" /> <drawtextbox x="{columnwidth}*0.02" y="{rowheight}*0.80" width="{columnwidth}*0.96" maxlines="2" align="center" font="{regular}" fontsize="8%" color="{clrWhite}" text="{daily[summary]}" />
<drawimage imagetype="skinpart" path="line_vertical" x="{columnwidth}" y="0" width="2" height="{rowheight}"/> <drawimage imagetype="skinpart" path="line_vertical" x="{columnwidth}" y="0" width="2" height="{rowheight}"/>
</loop> </loop>

View File

@ -128,7 +128,7 @@
<!-- All Tokens from listelement are available --> <!-- All Tokens from listelement are available -->
<currentelement delay="100" fadetime="0"> <currentelement delay="100" fadetime="0">
<area condition="{iscurrent}" x="51%" y="0" width="48%" height="100%" layer="3"> <area condition="{iscurrent}" x="51%" y="0" width="48%" height="100%" layer="3">
<drawimage name="weathericon" imagetype="icon" path="{icon}" x="2%" y="0" width="{areawidth}*0.4" height="{areawidth}*0.4"/> <drawimage name="weathericon" imagetype="icon" path="{icon}" x="2%" y="0" width="{areawidth}*0.3" height="{areawidth}*0.3"/>
<drawtext align="right" y="0" font="{semibold}" fontsize="8%" color="{clrWhite}" text="{city}" /> <drawtext align="right" y="0" font="{semibold}" fontsize="8%" color="{clrWhite}" text="{city}" />
<drawtext align="right" y="7%" font="{light}" fontsize="8%" color="{clrWhite}" text="{timestamp}" /> <drawtext align="right" y="7%" font="{light}" fontsize="8%" color="{clrWhite}" text="{timestamp}" />
<drawtext align="right" y="13%" font="{light}" fontsize="18%" color="{clrWhite}" text="{temperature}°C" /> <drawtext align="right" y="13%" font="{light}" fontsize="18%" color="{clrWhite}" text="{temperature}°C" />

View File

@ -106,7 +106,7 @@
<fill color="{clrTransBlack}" /> <fill color="{clrTransBlack}" />
</area> </area>
<area condition="{iscurrent}" x="32%" y="2%" width="67%" height="96%" layer="3"> <area condition="{iscurrent}" x="32%" y="2%" width="67%" height="96%" layer="3">
<drawimage name="weathericon" imagetype="icon" path="{icon}" x="2%" y="0" width="{areawidth}*0.3" height="{areawidth}*0.3"/> <drawimage name="weathericon" imagetype="icon" path="{icon}" x="2%" y="0" width="{areawidth}*0.2" height="{areawidth}*0.2"/>
<drawtext align="right" y="2%" font="{semibold}" fontsize="6%" color="{clrWhite}" text="{city}" /> <drawtext align="right" y="2%" font="{semibold}" fontsize="6%" color="{clrWhite}" text="{city}" />
<drawtext align="right" y="8%" font="{vdrOsd}" fontsize="6%" color="{clrWhite}" text="{timestamp}" /> <drawtext align="right" y="8%" font="{vdrOsd}" fontsize="6%" color="{clrWhite}" text="{timestamp}" />
<drawtext align="right" y="14%" font="{vdrOsd}" fontsize="12%" color="{clrWhite}" text="{temperature}°C" /> <drawtext align="right" y="14%" font="{vdrOsd}" fontsize="12%" color="{clrWhite}" text="{temperature}°C" />