Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] [PATCH] Enigma Skin for text2skin 1.0



I have noticed a few small problems with the latest Enigma skin which I have created a patch for.

1) The conditional was wrong for the display of the icons. If an icon did not exist, an error was displayed in the syslog.

2) Formatting to accept larger channel numbers (5 digits instead of 3)

3) Fixed formatting of Date/Time so they do not overlap.

Best Regards,
C.Y.M.

BTW, *very* nice skin to who made it :)
--- Enigma.skin.orig	2005-02-08 23:32:30.000000000 -0800
+++ Enigma.skin	2005-02-09 00:59:04.000000000 -0800
@@ -23,7 +23,7 @@
 		<block condition="not({Message})">
 			<rectangle x1="0" x2="89" y1="-120" y2="-31" color="LogoBG"/>
 			<image condition="file('hqlogos/{ChannelName}.png')" x="5" y="-115" path="hqlogos/{ChannelName}.png" bgColor="LogoBG"/>
-			<image condition="not(file('hqlogos/{ChannelName}.png'))" x="13" y="-99" path="logos/{ChannelName}.mng"/>
+			<image condition="and(not(file('hqlogos/{ChannelName}.png')),file('logos/{ChannelName}.mng'))" x="13" y="-99" path="logos/{ChannelName}.mng"/>
 			<image condition="and(not(file('hqlogos/{ChannelName}.png')),not(file('logos/{ChannelName}.mng')))" x="5" y="-115" path="icons/VDR-logo.png"/>
 		</block>
 		
@@ -36,10 +36,10 @@
 			<rectangle x1="107" x2="-1" y1="-140" y2="-133" color="TopBG"/>
 			<rectangle x1="107" x2="-1" y1="-128" y2="-125" color="TopBG"/>
 
-			<text x1="110" x2="179" y1="-161" y2="-124" color="TopTxtShad" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
-			<text x1="107" x2="176" y1="-162" y2="-125" color="TopTxtFG" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
-			<text x1="183" x2="-5" y1="-161" y2="-124" color="TopTxtShad" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
-			<text x1="180" x2="-8" y1="-162" y2="-125" color="TopTxtFG" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
+			<text x1="110" x2="209" y1="-161" y2="-124" color="TopTxtShad" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
+			<text x1="107" x2="206" y1="-162" y2="-125" color="TopTxtFG" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
+			<text x1="213" x2="-5" y1="-161" y2="-124" color="TopTxtShad" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
+			<text x1="210" x2="-8" y1="-162" y2="-125" color="TopTxtFG" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
 			
 			<!-- EPG-date "now" -->
 			<rectangle x1="107" x2="-1" y1="-120" y2="-78" color="ChEpgNowBG"/>
@@ -64,8 +64,8 @@
 			<rectangle x1="107" x2="-1" y1="-26" y2="-11" color="BotBG"/>		<rectangle x1="117" x2="-11" y1="-10" y2="-1" color="BotBG"/>
 			
 			<!-- date / time -->
-			<text x1="112" x2="229" y1="-26" y2="-1" color="BotTxtFG" align="left" font="tahoma.ttf:20,93">{DateTime:%d.%m.%y}</text>
-			<text x1="112" x2="229" y1="-26" y2="-1" color="BotTxtFG" align="right" font="tahoma.ttf:20,93">{DateTime:%H\:%M}</text>
+			<text x1="110" x2="232" y1="-26" y2="-1" color="BotTxtFG" align="left" font="tahoma.ttf:19,93">{DateTime:%d.%m.%y}</text>
+			<text x1="110" x2="232" y1="-26" y2="-1" color="BotTxtFG" align="right" font="tahoma.ttf:19,93">{DateTime:%H\:%M}</text>
 
 			<!-- progress-bar (if there are further audio-infos) -->
 			<rectangle condition="and({PresentProgress},or(ne({AudioTrack},''),equal({AudioChannel},'left'),equal({AudioChannel},'right')))" x1="234" x2="237" y1="-26" y2="-1" color="Transparent"/>
@@ -107,10 +107,10 @@
 			<rectangle x1="107" x2="-1" y1="-110" y2="-103" color="TopBG"/>
 			<rectangle x1="107" x2="-1" y1="-98" y2="-95" color="TopBG"/>
 			
-			<text condition="{ChannelNumber}" x1="110" x2="179" y1="-131" y2="-94" color="TopTxtShad" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
-			<text condition="{ChannelNumber}" x1="107" x2="176" y1="-132" y2="-95" color="TopTxtFG" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
-			<text condition="{ChannelNumber}" x1="183" x2="-5" y1="-131" y2="-94" color="TopTxtShad" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
-			<text condition="{ChannelNumber}" x1="180" x2="-8" y1="-132" y2="-95" color="TopTxtFG" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
+			<text condition="{ChannelNumber}" x1="110" x2="209" y1="-131" y2="-94" color="TopTxtShad" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
+			<text condition="{ChannelNumber}" x1="107" x2="206" y1="-132" y2="-95" color="TopTxtFG" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
+			<text condition="{ChannelNumber}" x1="213" x2="-5" y1="-131" y2="-94" color="TopTxtShad" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
+			<text condition="{ChannelNumber}" x1="210" x2="-8" y1="-132" y2="-95" color="TopTxtFG" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
 			
 			<text condition="not({ChannelNumber})" x1="110" x2="-1" y1="-131" y2="-94" color="TopTxtShad" align="center" font="tahomabd.ttf:30,93">{ChannelName}</text>
 			<text condition="not({ChannelNumber})" x1="107" x2="-4" y1="-132" y2="-95" color="TopTxtFG" align="center" font="tahomabd.ttf:30,93">{ChannelName}</text>
@@ -123,8 +123,8 @@
 			<rectangle x1="107" x2="-1" y1="-56" y2="-41" color="BotBG"/>		<rectangle x1="107" x2="-11" y1="-40" y2="-31" color="BotBG"/>
 			
 			<!-- date / time -->
-			<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:20,93">{DateTime:%d.%m.%y}</text>
-			<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:20,93">{DateTime:%H\:%M}</text>
+			<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:19,93">{DateTime:%d.%m.%y}</text>
+			<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:19,93">{DateTime:%H\:%M}</text>
 			
 			<!-- icons -->
 			<image x="-32" y="-52" condition="{IsRecording}" color="SymActive" bgColor="BotBG" path="symbols/recording.xpm"/>
@@ -203,10 +203,10 @@
 		<rectangle x1="107" x2="-1" y1="-110" y2="-103" color="TopBG"/>
 		<rectangle x1="107" x2="-1" y1="-98" y2="-95" color="TopBG"/>
 		
-		<text condition="{ChannelNumber}" x1="110" x2="179" y1="-131" y2="-94" color="TopTxtShad" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
-		<text condition="{ChannelNumber}" x1="107" x2="176" y1="-132" y2="-95" color="TopTxtFG" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
-		<text condition="{ChannelNumber}" x1="183" x2="-5" y1="-131" y2="-94" color="TopTxtShad" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
-		<text condition="{ChannelNumber}" x1="180" x2="-8" y1="-132" y2="-95" color="TopTxtFG" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
+		<text condition="{ChannelNumber}" x1="110" x2="209" y1="-131" y2="-94" color="TopTxtShad" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
+		<text condition="{ChannelNumber}" x1="107" x2="206" y1="-132" y2="-95" color="TopTxtFG" align="center" font="tahomabd.ttf:30,93">{ChannelNumber}</text>
+		<text condition="{ChannelNumber}" x1="213" x2="-5" y1="-131" y2="-94" color="TopTxtShad" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
+		<text condition="{ChannelNumber}" x1="210" x2="-8" y1="-132" y2="-95" color="TopTxtFG" align="left" font="tahomabd.ttf:30,93">{ChannelName}</text>
 		
 		<text condition="not({ChannelNumber})" x1="110" x2="-1" y1="-131" y2="-94" color="TopTxtShad" align="center" font="tahomabd.ttf:30,93">{ChannelName}</text>
 		<text condition="not({ChannelNumber})" x1="107" x2="-4" y1="-132" y2="-95" color="TopTxtFG" align="center" font="tahomabd.ttf:30,93">{ChannelName}</text>
@@ -219,8 +219,8 @@
 		<rectangle x1="107" x2="-1" y1="-56" y2="-41" color="BotBG"/>		<rectangle x1="107" x2="-11" y1="-40" y2="-31" color="BotBG"/>
 		
 		<!-- date / time -->
-		<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:20,93">{DateTime:%d.%m.%y}</text>
-		<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:20,93">{DateTime:%H\:%M}</text>
+		<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:19,93">{DateTime:%d.%m.%y}</text>
+		<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:19,93">{DateTime:%H\:%M}</text>
 		
 		<!-- icons -->
 		<image x="-32" y="-52" condition="{IsRecording}" color="SymActive" bgColor="BotBG" path="symbols/recording.xpm"/>
@@ -338,8 +338,8 @@
 		<rectangle x1="107" x2="-1" y1="-56" y2="-41" color="BotBG"/>		<rectangle x1="107" x2="-11" y1="-40" y2="-31" color="BotBG"/>
 		
 		<!-- date / time -->
-		<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:20,93">{DateTime:%d.%m.%y}</text>
-		<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:20,93">{DateTime:%H\:%M}</text>
+		<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:19,93">{DateTime:%d.%m.%y}</text>
+		<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:19,93">{DateTime:%H\:%M}</text>
 		
 		<!-- replay-position and replay-prompt -->
 		<text x1="-190" x2="-5" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahomabd.ttf:20,93">{ReplayPosition}/{ReplayDuration}</text>
@@ -554,8 +554,8 @@
 		<rectangle x1="10" x2="-11" y1="-10" y2="-1" color="BotBG"/>
 		
 		<!-- date / time -->
-		<text x1="5" x2="122" y1="-26" y2="-1" color="BotTxtFG" align="left" font="tahoma.ttf:20,93">{DateTime:%d.%m.%y}</text>
-		<text x1="5" x2="122" y1="-26" y2="-1" color="BotTxtFG" align="right" font="tahoma.ttf:20,93">{DateTime:%H\:%M}</text>
+		<text x1="3" x2="125" y1="-26" y2="-1" color="BotTxtFG" align="left" font="tahoma.ttf:19,93">{DateTime:%d.%m.%y}</text>
+		<text x1="3" x2="125" y1="-26" y2="-1" color="BotTxtFG" align="right" font="tahoma.ttf:19,93">{DateTime:%H\:%M}</text>
 		
 		<!-- Buttons -->
 		<block condition="{ButtonRed}">
@@ -716,8 +716,8 @@
 		<rectangle x1="107" x2="-1" y1="-56" y2="-41" color="BotBG"/>		<rectangle x1="107" x2="-11" y1="-40" y2="-31" color="BotBG"/>
 		
 		<!-- date / time -->
-		<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:20,93">{DateTime:%d.%m.%y}</text>
-		<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:20,93">{DateTime:%H\:%M}</text>
+		<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:19,93">{DateTime:%d.%m.%y}</text>
+		<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:19,93">{DateTime:%H\:%M}</text>
 		
 		<!-- overlay messages -->
 		<block condition="{Message}">
@@ -797,8 +797,8 @@
 		<rectangle x1="107" x2="-1" y1="-56" y2="-41" color="BotBG"/>		<rectangle x1="107" x2="-11" y1="-40" y2="-31" color="BotBG"/>
 		
 		<!-- date / time -->
-		<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:20,93">{DateTime:%d.%m.%y}</text>
-		<text x1="112" x2="229" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:20,93">{DateTime:%H\:%M}</text>
+		<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="left" font="tahoma.ttf:19,93">{DateTime:%d.%m.%y}</text>
+		<text x1="110" x2="232" y1="-56" y2="-31" color="BotTxtFG" align="right" font="tahoma.ttf:19,93">{DateTime:%H\:%M}</text>
 	</display>
 	
 	
@@ -846,7 +846,7 @@
 		<rectangle x1="10" x2="329" y1="-10" y2="-1" color="BotBG"/>
 		
 		<!-- date / time -->
-		<text x1="5" x2="122" y1="-26" y2="-1" color="BotTxtFG" align="left" font="tahoma.ttf:20,93">{DateTime:%d.%m.%y}</text>
-		<text x1="5" x2="122" y1="-26" y2="-1" color="BotTxtFG" align="right" font="tahoma.ttf:20,93">{DateTime:%H\:%M}</text>
+		<text x1="3" x2="125" y1="-26" y2="-1" color="BotTxtFG" align="left" font="tahoma.ttf:19,93">{DateTime:%d.%m.%y}</text>
+		<text x1="3" x2="125" y1="-26" y2="-1" color="BotTxtFG" align="right" font="tahoma.ttf:19,93">{DateTime:%H\:%M}</text>
 	</display>
 </skin>

Home | Main Index | Thread Index