XSL dialog preview now shows default-state LEDs

This commit is contained in:
2014-04-14 01:14:40 -04:00
parent 8d76aed26c
commit 152f828e44
2 changed files with 7 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ title {
min-width: 14px;
height: 10px;
text-align: left;
background-image: url('img/button/led-off.png');
background-position: left center;
padding-left: 18px;
padding-top: 0px;

View File

@@ -107,7 +107,9 @@ background-image: url('img/bg/<xsl:value-of select='/dialog/@skin'/>.png');
<xsl:when test='@font = "bold"'>Silom</xsl:when>
<xsl:otherwise><xsl:value-of select='./@font'/></xsl:otherwise>
</xsl:choose>;
background-image: url('img/button/led-<xsl:value-of select='./@state'/>.png');
<xsl:if test='./@state'>
background-image: url('img/button/led-<xsl:value-of select='./@state'/>.png');
</xsl:if>
left: <xsl:value-of select='./@left'/>px; top: <xsl:value-of select='./@top'/>px;
width: <xsl:value-of select='./@width'/>px;
</xsl:attribute>
@@ -135,7 +137,9 @@ background-image: url('img/bg/<xsl:value-of select='/dialog/@skin'/>.png');
<xsl:otherwise><xsl:value-of select='./@font'/></xsl:otherwise>
</xsl:choose>;
border-color: red;
background-image: url('img/button/led-<xsl:value-of select='./@state'/>.png');
<xsl:if test='./@state'>
background-image: url('img/button/led-<xsl:value-of select='./@state'/>.png');
</xsl:if>
left: <xsl:value-of select='./@left'/>px; top: <xsl:value-of select='./@top'/>px;
width: <xsl:value-of select='./@width'/>px;
</xsl:attribute>