summaryrefslogtreecommitdiff
path: root/navit/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'navit/xslt')
-rw-r--r--navit/xslt/sailfish_osd.xslt29
1 files changed, 6 insertions, 23 deletions
diff --git a/navit/xslt/sailfish_osd.xslt b/navit/xslt/sailfish_osd.xslt
index ca9925a49..fc2244d97 100644
--- a/navit/xslt/sailfish_osd.xslt
+++ b/navit/xslt/sailfish_osd.xslt
@@ -2,8 +2,14 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xsl:param name="OSD_SIZE" select="2"/>
+ <xsl:param name="ICON_SMALL" select="32"/>
+ <xsl:param name="ICON_MEDIUM" select="64"/>
+ <xsl:param name="ICON_BIG" select="96"/>
+ <xsl:param name="OSD_USE_OVERLAY">yes</xsl:param>
<xsl:output method="xml" indent="yes" cdata-section-elements="gui" doctype-system="navit.dtd"/>
+ <xsl:include href="osd_minimum.xslt"/>
<!-- Default rule: copy all -->
<xsl:template match="node()|@*">
@@ -12,27 +18,4 @@
</xsl:copy>
</xsl:template>
- <xsl:template match="/config/navit/osd[1]">
- <osd enabled="yes" type="gps_status" x="0" y="0" w="50" h="50"/>
- <xsl:text>&#x0A; </xsl:text>
- <osd enabled="no" type="text" label="${{vehicle.position_sats_used}}/${{vehicle.position_qual}}" x="0" y="0" w="50" h="50" background_color="#00000058" font_size="400"/>
- <xsl:text>&#x0A; </xsl:text>
- <osd enabled="yes" type="text" label="${{vehicle.position_speed}}" x="50" y="0" w="150" h="50" background_color="#00000058" font_size="400"/>
- <xsl:text>&#x0A; </xsl:text>
- <osd enabled="yes" type="text" label="${{navigation.item.destination_length[named]}}" x="200" y="0" w="240" h="50" background_color="#00000058" font_size="400"/>
- <xsl:text>&#x0A; </xsl:text>
- <osd enabled="yes" type="navigation_next_turn" x="-100" y="0" w="100" h="100" icon_w="90" icon_h="80" background_color="#00000058"/>
- <xsl:text>&#x0A; </xsl:text>
- <osd enabled="yes" type="button" x="-96" y="-96" w="96" h="96" command="zoom_in()" src="zoom_in" use_overlay="true"/>
- <xsl:text>&#x0A; </xsl:text>
- <osd enabled="yes" type="text" label="${{navigation.item[1].length[named]}}" x="-100" y="100" w="100" h="50" background_color="#00000058" font_size="400"/>
- <xsl:text>&#x0A; </xsl:text>
- <osd enabled="yes" type="button" x="0" y="-96" w="96" h="96" command="zoom_out()" src="zoom_out" use_overlay="true"/>
- <xsl:text>&#x0A; </xsl:text>
- <xsl:copy>
- <xsl:apply-templates select="@*"/>
- <xsl:apply-templates select="node()"/>
- </xsl:copy>
- </xsl:template>
-
</xsl:stylesheet>