diff options
author | Stefan Wildemann <gta04@metalstrolche.de> | 2017-06-05 20:07:09 +0200 |
---|---|---|
committer | Stefan Wildemann <gta04@metalstrolche.de> | 2017-06-21 21:37:35 +0200 |
commit | c9b8eb79815f8ef691b41a54d2d3eb46512606d5 (patch) | |
tree | febda53a9af2381e9481174e14b5eac837a620a2 | |
parent | bec0938fe36aeba2ca708b58d34a0260801c05ac (diff) | |
download | navit-c9b8eb79815f8ef691b41a54d2d3eb46512606d5.tar.gz |
Configure internal gui for sailfish
-rwxr-xr-x | contrib/sailfish/navit-sailfish.spec | 2 | ||||
-rw-r--r-- | navit/xslt/sailfish_gui.xslt | 27 |
2 files changed, 28 insertions, 1 deletions
diff --git a/contrib/sailfish/navit-sailfish.spec b/contrib/sailfish/navit-sailfish.spec index dc48fc569..5811e9943 100755 --- a/contrib/sailfish/navit-sailfish.spec +++ b/contrib/sailfish/navit-sailfish.spec @@ -82,7 +82,7 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -Dvehicle/gpsd_dbus:BOOL=FALSE \ -DUSE_PLUGINS=n \ -DUSE_QWIDGET:BOOL=FALSE \ - -DXSLTS:STRING="sailfish_disable;sailfish_qt5;sailfish_osd;sailfish_mapset;sailfish_svg" \ + -DXSLTS:STRING="sailfish_disable;sailfish_qt5;sailfish_osd;sailfish_mapset;sailfish_svg;sailfish_gui" \ %{navit_real_source} %{__make} diff --git a/navit/xslt/sailfish_gui.xslt b/navit/xslt/sailfish_gui.xslt new file mode 100644 index 000000000..b6a42f2de --- /dev/null +++ b/navit/xslt/sailfish_gui.xslt @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xi="http://www.w3.org/2001/XInclude"> + + <xsl:output method="xml" indent="yes" cdata-section-elements="gui" doctype-system="navit.dtd"/> + + <!-- Default rule: copy all --> + <xsl:template match="node()|@*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + + <xsl:template match="/config/navit/gui[@type='internal']"> + <xsl:copy> + <xsl:apply-templates select="@*"/> + <xsl:attribute name="font_size">350</xsl:attribute> + <xsl:attribute name="icon_xs">32</xsl:attribute> + <xsl:attribute name="icon_s">96</xsl:attribute> + <xsl:attribute name="icon_l">96</xsl:attribute> + <xsl:attribute name="enabled">yes</xsl:attribute> + <xsl:apply-templates select="node()"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> |