diff options
author | mvglasow <michael -at- vonglasow.com> | 2019-01-22 21:48:09 +0100 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2019-01-22 21:48:09 +0100 |
commit | 04163a7491a3573670efcb62cce342f70d1b3ca7 (patch) | |
tree | ddc96d7e2c9d948ffb358b039e3b3658118860b7 | |
parent | a49303c0ebadfd27f34f9ed19d2023eff6f91b8f (diff) | |
download | navit-04163a7491a3573670efcb62cce342f70d1b3ca7.tar.gz |
Add:gui:New zoom in/out buttons
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r-- | navit/icons/zoom_in.svg | 152 | ||||
-rw-r--r-- | navit/icons/zoom_out.svg | 144 | ||||
-rw-r--r-- | navit/xslt/osd_minimum.xslt | 4 |
3 files changed, 182 insertions, 118 deletions
diff --git a/navit/icons/zoom_in.svg b/navit/icons/zoom_in.svg index 18ff2dac8..643a2a710 100644 --- a/navit/icons/zoom_in.svg +++ b/navit/icons/zoom_in.svg @@ -12,40 +12,83 @@ width="48" height="48" id="svg2" - sodipodi:version="0.32" - inkscape:version="0.48.0 r9654" - sodipodi:docname="zoom_in.svg" - inkscape:output_extension="org.inkscape.output.svg.inkscape" - inkscape:export-filename="/home/zeroedout/share/usr/share/navit/xpm/zoom_in.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90" - version="1.0"> + version="1.1" + inkscape:version="0.48.3.1 r9886" + sodipodi:docname="set_center_cursor.svg" + inkscape:export-filename="/home/michael/src/navit-artwork/set_center_cursor.png" + inkscape:export-xdpi="134.99994" + inkscape:export-ydpi="134.99994"> <defs - id="defs4" /> + id="defs4"> + <clipPath + clipPathUnits="userSpaceOnUse" + id="clipPath428"> + <path + inkscape:connector-curvature="0" + d="M 0,96 96,96 96,0 0,0 0,96 z" + id="path430" /> + </clipPath> + <clipPath + clipPathUnits="userSpaceOnUse" + id="clipPath416"> + <path + inkscape:connector-curvature="0" + d="M 0,96 96,96 96,0 0,0 0,96 z" + id="path418" /> + </clipPath> + <clipPath + clipPathUnits="userSpaceOnUse" + id="clipPath544"> + <path + inkscape:connector-curvature="0" + d="M 0,96 96,96 96,0 0,0 0,96 z" + id="path546" /> + </clipPath> + </defs> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" - gridtolerance="10000" - guidetolerance="10" - objecttolerance="10" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="7.919596" - inkscape:cx="13.199956" - inkscape:cy="14.64192" + inkscape:zoom="15.8125" + inkscape:cx="21.280633" + inkscape:cy="24" inkscape:document-units="px" - inkscape:current-layer="g3036" + inkscape:current-layer="layer1" showgrid="true" - inkscape:window-width="1394" - inkscape:window-height="968" - inkscape:window-x="0" - inkscape:window-y="20" - width="48px" - height="48px" showguides="true" - inkscape:window-maximized="0" /> + inkscape:guide-bbox="true" + inkscape:window-width="1280" + inkscape:window-height="955" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" /> + <sodipodi:guide + orientation="0,1" + position="0,8" + id="guide2987" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> <metadata id="metadata7"> <rdf:RDF> @@ -59,42 +102,37 @@ </rdf:RDF> </metadata> <g - inkscape:label="lower copy" - id="g3036" - inkscape:groupmode="layer" - style="display:inline" - sodipodi:insensitive="true"> - <path - transform="matrix(0.84928644,0,0,0.84928644,3.5710462,3.6632047)" - d="m 47.603437,23.945744 a 23.549181,23.549181 0 1 1 -47.09836155,0 23.549181,23.549181 0 1 1 47.09836155,0 z" - sodipodi:ry="23.549181" - sodipodi:rx="23.549181" - sodipodi:cy="23.945744" - sodipodi:cx="24.054256" - id="path3038" - style="fill:#999999;fill-opacity:0.38536586;stroke:none;display:inline" - sodipodi:type="arc" /> - <path - transform="matrix(0.77851257,0,0,0.77851257,5.273459,5.3579376)" - d="m 47.603437,23.945744 a 23.549181,23.549181 0 1 1 -47.09836155,0 23.549181,23.549181 0 1 1 47.09836155,0 z" - sodipodi:ry="23.549181" - sodipodi:rx="23.549181" - sodipodi:cy="23.945744" - sodipodi:cx="24.054256" - id="path6552" - style="fill:none;stroke:#999999;stroke-width:4.28166914;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;display:inline" - sodipodi:type="arc" /> - </g> - <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - sodipodi:insensitive="true" - style="display:inline"> - <path - id="path2178" - style="fill:none;stroke:#999999;stroke-width:4.0538249;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dashoffset:0;marker-start:none" - d="m 12.508912,24 c 22.982175,0 22.982175,0 22.982175,0 m -11.63349,11.491087 0,-22.982175" - inkscape:connector-curvature="0" /> + transform="translate(0,-1004.3622)"> + <rect + style="fill:#000000;fill-opacity:0.62745098;stroke:none" + id="rect2993" + width="48" + height="48.000019" + x="3.5527137e-15" + y="1004.3622" + rx="4" /> + <g + transform="matrix(0.49591559,0,0,-0.49591559,0.00568833,1051.552)" + id="g4057" + style="fill:#ffffff;fill-opacity:1"> + <g + transform="translate(40.916449,57.878561)" + id="g1386" + style="fill:#ffffff;fill-opacity:1"> + <path + inkscape:connector-curvature="0" + id="path1388" + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" + d="m 0,0 0,13.301 -4.16,0 0,-13.301 -13.103,0 0,-4.162 13.103,0 0,-13.296 4.16,0 0,13.296 13.105,0 0,4.162 L 0,0 z" /> + </g> + <path + d="m 26.293557,43.115008 c -7.104,7.11 -7.104,18.632 0,25.736 7.109,7.109 18.622,7.103 25.735,0 7.103,-7.104 7.103,-18.622 0,-25.736 -7.113,-7.104 -18.631,-7.104 -25.735,0 m 53.584,-18.533 -12.164,12.168 c -1.07,1.068 -3.007,0.967 -4.95,-0.045 l -5.307,5.305 c 6.914,9.033 6.261,22.002 -2.003,30.268 -8.999,8.995 -23.587,8.995 -32.587,0 -8.995,-9 -8.995,-23.588 0,-32.588 8.268,-8.264 21.237,-8.917 30.269,-2.001 l 5.307,-5.303 c -1.012,-1.947 -1.115,-3.882 -0.047,-4.953 l 12.166,-12.168 c 1.537,-1.535 4.874,-0.691 7.441,1.883 2.571,2.568 3.415,5.899 1.875,7.434" + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" + id="path1540" + inkscape:connector-curvature="0" /> + </g> </g> </svg> diff --git a/navit/icons/zoom_out.svg b/navit/icons/zoom_out.svg index 1d794efd2..69fcd14ad 100644 --- a/navit/icons/zoom_out.svg +++ b/navit/icons/zoom_out.svg @@ -12,48 +12,83 @@ width="48" height="48" id="svg2" - sodipodi:version="0.32" - inkscape:version="0.47 r22583" + version="1.1" + inkscape:version="0.48.3.1 r9886" sodipodi:docname="zoom_in.svg" - inkscape:output_extension="org.inkscape.output.svg.inkscape" - inkscape:export-filename="/home/zeroedout/share/usr/share/navit/xpm/zoom_in.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90" - version="1.0"> + inkscape:export-filename="/home/michael/src/navit-artwork/zoom_in.png" + inkscape:export-xdpi="134.99994" + inkscape:export-ydpi="134.99994"> <defs id="defs4"> - <inkscape:perspective - sodipodi:type="inkscape:persp3d" - inkscape:vp_x="0 : 24 : 1" - inkscape:vp_y="0 : 1000 : 0" - inkscape:vp_z="48 : 24 : 1" - inkscape:persp3d-origin="24 : 16 : 1" - id="perspective11" /> + <clipPath + clipPathUnits="userSpaceOnUse" + id="clipPath428"> + <path + inkscape:connector-curvature="0" + d="M 0,96 96,96 96,0 0,0 0,96 z" + id="path430" /> + </clipPath> + <clipPath + clipPathUnits="userSpaceOnUse" + id="clipPath416"> + <path + inkscape:connector-curvature="0" + d="M 0,96 96,96 96,0 0,0 0,96 z" + id="path418" /> + </clipPath> + <clipPath + clipPathUnits="userSpaceOnUse" + id="clipPath544"> + <path + inkscape:connector-curvature="0" + d="M 0,96 96,96 96,0 0,0 0,96 z" + id="path546" /> + </clipPath> </defs> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" - gridtolerance="10000" - guidetolerance="10" - objecttolerance="10" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="7.919596" - inkscape:cx="13.199956" - inkscape:cy="14.64192" + inkscape:zoom="15.8125" + inkscape:cx="21.280633" + inkscape:cy="24" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" - inkscape:window-width="1280" - inkscape:window-height="973" - inkscape:window-x="-6" - inkscape:window-y="0" - width="48px" - height="48px" showguides="true" - inkscape:window-maximized="1" /> + inkscape:guide-bbox="true" + inkscape:window-width="1280" + inkscape:window-height="955" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" /> + <sodipodi:guide + orientation="0,1" + position="0,8" + id="guide2987" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> <metadata id="metadata7"> <rdf:RDF> @@ -67,42 +102,33 @@ </rdf:RDF> </metadata> <g - inkscape:label="lower copy" - id="g3036" - inkscape:groupmode="layer" - style="display:inline" - sodipodi:insensitive="true"> - <path - transform="matrix(0.84928644,0,0,0.84928644,3.5710462,3.6632047)" - d="m 47.603437,23.945744 a 23.549181,23.549181 0 1 1 -47.09836155,0 23.549181,23.549181 0 1 1 47.09836155,0 z" - sodipodi:ry="23.549181" - sodipodi:rx="23.549181" - sodipodi:cy="23.945744" - sodipodi:cx="24.054256" - id="path3038" - style="fill:#999999;fill-opacity:0.38536586;stroke:none;display:inline" - sodipodi:type="arc" /> - <path - transform="matrix(0.77851257,0,0,0.77851257,5.273459,5.3579376)" - d="m 47.603437,23.945744 a 23.549181,23.549181 0 1 1 -47.09836155,0 23.549181,23.549181 0 1 1 47.09836155,0 z" - sodipodi:ry="23.549181" - sodipodi:rx="23.549181" - sodipodi:cy="23.945744" - sodipodi:cx="24.054256" - id="path6552" - style="fill:none;stroke:#999999;stroke-width:4.28166914;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;display:inline" - sodipodi:type="arc" /> - </g> - <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - style="display:inline"> + transform="translate(0,-1004.3622)"> + <rect + style="fill:#000000;fill-opacity:0.62745098;stroke:none" + id="rect2993" + width="48" + height="48.000019" + x="3.5527137e-15" + y="1004.3622" + rx="4" /> + <g + style="fill:#ffffff;fill-opacity:1" + id="g1386" + transform="matrix(0.49591559,0,0,-0.49591559,20.296793,1022.8491)"> + <path + d="m -17.263,0 0,-4.162 30.368,0 0,4.162 z" + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" + id="path1388" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccc" /> + </g> <path - id="path2178" - style="fill:none;stroke:#999999;stroke-width:4.0538249;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dashoffset:0;marker-start:none" - d="m 12.508912,24 c 22.982175,0 22.982175,0 22.982175,0" inkscape:connector-curvature="0" - sodipodi:nodetypes="cc" /> + id="path1540" + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" + d="m 13.045073,1030.1706 c -3.5229842,-3.526 -3.5229842,-9.2399 0,-12.7629 3.525464,-3.5255 9.23494,-3.5225 12.762388,0 3.522488,3.523 3.522488,9.235 0,12.7629 -3.527448,3.523 -9.239403,3.523 -12.762388,0 m 26.573141,9.1908 -6.032317,-6.0343 c -0.53063,-0.5296 -1.491218,-0.4796 -2.454782,0.022 l -2.631824,-2.6308 c 3.42876,-4.4796 3.104927,-10.9112 -0.993319,-15.0104 -4.462745,-4.4608 -11.697161,-4.4608 -16.160402,0 -4.4607603,4.4632 -4.4607603,11.6977 0,16.1609 4.100231,4.0983 10.53176,4.4221 15.010869,0.9923 l 2.631824,2.6299 c -0.501866,0.9655 -0.552945,1.9251 -0.02331,2.4562 l 6.03331,6.0343 c 0.762222,0.7613 2.417092,0.3427 3.690107,-0.9338 1.274999,-1.2735 1.693552,-2.9254 0.929842,-3.6866" /> </g> </svg> diff --git a/navit/xslt/osd_minimum.xslt b/navit/xslt/osd_minimum.xslt index ddf3e4038..5d37323f4 100644 --- a/navit/xslt/osd_minimum.xslt +++ b/navit/xslt/osd_minimum.xslt @@ -30,9 +30,9 @@ <osd type="button" src="gui_zoom_auto_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="autozoom_active=1" x="0" y="0" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}" enable_expression="autozoom_active==0"/> --> <xsl:text>
 </xsl:text> - <osd type="button" src="gui_zoom_in_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="zoom_in()" x="{round(-2*(number($ICON_BIG)+8*number($OSD_SIZE))-60*number($OSD_SIZE))}" y="{-round(number($ICON_BIG)+22*number($OSD_SIZE))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}"/> + <osd type="button" src="zoom_in_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="zoom_in()" x="{round(-2*(number($ICON_BIG)+8*number($OSD_SIZE))-60*number($OSD_SIZE))}" y="{-round(number($ICON_BIG)+22*number($OSD_SIZE))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}"/> <xsl:text>
 </xsl:text> - <osd type="button" src="gui_zoom_out_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="zoom_out()" x="{round(-(number($ICON_BIG)+8*number($OSD_SIZE))-60*number($OSD_SIZE))}" y="{-round(number($ICON_BIG)+22*number($OSD_SIZE))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}"/> + <osd type="button" src="zoom_out_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="zoom_out()" x="{round(-(number($ICON_BIG)+8*number($OSD_SIZE))-60*number($OSD_SIZE))}" y="{-round(number($ICON_BIG)+22*number($OSD_SIZE))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}"/> <xsl:text>
 </xsl:text> <osd type="button" src="follow_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="follow=0;set_center_cursor()" x="{round(8*number($OSD_SIZE))}" y="{-round(number($ICON_BIG)+22*number($OSD_SIZE))}" enable_expression="follow>1" use_overlay="{$OSD_USE_OVERLAY}"/> <xsl:text>
 </xsl:text> |