mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
				synced 2023-10-19 15:58:31 +00:00 
			
		
		
		
	optimized some weather templates
This commit is contained in:
		@@ -109,8 +109,8 @@
 | 
			
		||||
                <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]}" />
 | 
			
		||||
                    <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" />
 | 
			
		||||
                    <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]}" />
 | 
			
		||||
                    <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.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}"/>
 | 
			
		||||
                </loop>
 | 
			
		||||
            </area>
 | 
			
		||||
@@ -118,8 +118,8 @@
 | 
			
		||||
                <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="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"/>
 | 
			
		||||
                    <drawtext align="center" y="{rowheight}*0.65" font="{regular}" fontsize="11%" color="{clrWhite}" text="{daily[temperaturemin]}°C - {daily[temperaturemax]}°C" />
 | 
			
		||||
                    <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="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]}" />
 | 
			
		||||
                    <drawimage imagetype="skinpart" path="line_vertical" x="{columnwidth}" y="0" width="2" height="{rowheight}"/>
 | 
			
		||||
                </loop>
 | 
			
		||||
 
 | 
			
		||||
@@ -128,7 +128,7 @@
 | 
			
		||||
        <!-- All Tokens from listelement are available -->
 | 
			
		||||
        <currentelement delay="100" fadetime="0">
 | 
			
		||||
            <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="7%" font="{light}" fontsize="8%" color="{clrWhite}" text="{timestamp}" />
 | 
			
		||||
                <drawtext align="right" y="13%" font="{light}" fontsize="18%" color="{clrWhite}" text="{temperature}°C" />
 | 
			
		||||
@@ -161,4 +161,4 @@
 | 
			
		||||
            </area>
 | 
			
		||||
        </currentelement>
 | 
			
		||||
    </menuitems>
 | 
			
		||||
</menuplugin>
 | 
			
		||||
</menuplugin>
 | 
			
		||||
 
 | 
			
		||||
@@ -106,7 +106,7 @@
 | 
			
		||||
                <fill color="{clrTransBlack}" />
 | 
			
		||||
            </area>
 | 
			
		||||
            <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="8%" font="{vdrOsd}" fontsize="6%" color="{clrWhite}" text="{timestamp}" />
 | 
			
		||||
                <drawtext align="right" y="14%" font="{vdrOsd}" fontsize="12%" color="{clrWhite}" text="{temperature}°C" />
 | 
			
		||||
@@ -139,4 +139,4 @@
 | 
			
		||||
            </area>
 | 
			
		||||
        </currentelement>
 | 
			
		||||
    </menuitems>
 | 
			
		||||
</menuplugin>
 | 
			
		||||
</menuplugin>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user