diff options
Diffstat (limited to 'navit/xslt/sailfish_svg.xslt')
| -rw-r--r-- | navit/xslt/sailfish_svg.xslt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/navit/xslt/sailfish_svg.xslt b/navit/xslt/sailfish_svg.xslt index 7203ed34d..63d384a5a 100644 --- a/navit/xslt/sailfish_svg.xslt +++ b/navit/xslt/sailfish_svg.xslt @@ -12,6 +12,17 @@ </xsl:copy> </xsl:template> + <!-- Force default cursor size of all layouts, force tunnel transparency --> + <xsl:template match="/layout"> + <xsl:copy> + <xsl:apply-templates select="@*"/> + <xsl:attribute name="icon_w">16</xsl:attribute> + <xsl:attribute name="icon_h">16</xsl:attribute> + <xsl:attribute name="underground_alpha">0x33</xsl:attribute> + <xsl:apply-templates select="node()"/> + </xsl:copy> + </xsl:template> + <!-- Force all png icons to svg and add w and h if not exist --> <xsl:template match="icon"> <xsl:copy> @@ -21,12 +32,6 @@ <xsl:value-of select="concat(substring(@src,1, string-length(@src)-3),'svg')"/> </xsl:attribute> </xsl:if> - <xsl:if test="not(@h)"> - <xsl:attribute name="h">15</xsl:attribute> - </xsl:if> - <xsl:if test="not(@w)"> - <xsl:attribute name="w">15</xsl:attribute> - </xsl:if> <xsl:apply-templates select="node()"/> </xsl:copy> </xsl:template> |
