diff options
author | mvglasow <michael@vonglasow.com> | 2019-02-20 00:22:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-20 00:22:58 +0100 |
commit | 0428ef92825cfa2d9949a9ea6ef84e0d98fb8fba (patch) | |
tree | 59fb38cf0297fea6eec6dd4b39acdd309d8cf6fe | |
parent | f4d8faa5cefd43dcf2758092af2e555d43141b57 (diff) | |
parent | 88fca113d2b281f2d53fa52ce0b72c6a6105dc2a (diff) | |
download | navit-0428ef92825cfa2d9949a9ea6ef84e0d98fb8fba.tar.gz |
Merge pull request #737 from mvglasow/osd-layout
New default OSD layout
-rw-r--r-- | navit/graphics/android/graphics_android.c | 59 | ||||
-rw-r--r-- | navit/icons/follow.svg | 168 | ||||
-rw-r--r-- | navit/icons/gui_android_menu.svg | 174 | ||||
-rw-r--r-- | navit/icons/sound_off.svg | 114 | ||||
-rw-r--r-- | navit/icons/sound_on.svg | 122 | ||||
-rw-r--r-- | navit/icons/zoom_auto.svg | 147 | ||||
-rw-r--r-- | navit/icons/zoom_in.svg | 142 | ||||
-rw-r--r-- | navit/icons/zoom_manual.svg | 147 | ||||
-rw-r--r-- | navit/icons/zoom_out.svg | 144 | ||||
-rw-r--r-- | navit/osd.c | 2 | ||||
-rw-r--r-- | navit/osd/core/osd_core.c | 21 | ||||
-rw-r--r-- | navit/xslt/openmoko.xslt | 8 | ||||
-rw-r--r-- | navit/xslt/osd_android.xslt | 2 | ||||
-rw-r--r-- | navit/xslt/osd_minimum.xslt | 30 | ||||
-rw-r--r-- | navit/xslt/sailfish_osd.xslt | 29 | ||||
-rw-r--r-- | navit/xslt/tomtom.xslt | 17 | ||||
-rw-r--r-- | navit/xslt/wince.xslt | 7 |
17 files changed, 1051 insertions, 282 deletions
diff --git a/navit/graphics/android/graphics_android.c b/navit/graphics/android/graphics_android.c index 6b6d5c22d..68cf1874d 100644 --- a/navit/graphics/android/graphics_android.c +++ b/navit/graphics/android/graphics_android.c @@ -130,7 +130,8 @@ static struct graphics_font_methods font_methods = { font_destroy }; -static struct graphics_font_priv *font_new(struct graphics_priv *gr, struct graphics_font_methods *meth, char *font, int size, int flags) { +static struct graphics_font_priv *font_new(struct graphics_priv *gr, struct graphics_font_methods *meth, char *font, + int size, int flags) { struct graphics_font_priv *ret=g_new0(struct graphics_font_priv, 1); *meth=font_methods; @@ -195,7 +196,8 @@ static struct graphics_image_methods image_methods = { }; -static struct graphics_image_priv *image_new(struct graphics_priv *gra, struct graphics_image_methods *meth, char *path, int *w, int *h, struct point *hot, int rotation) { +static struct graphics_image_priv *image_new(struct graphics_priv *gra, struct graphics_image_methods *meth, char *path, + int *w, int *h, struct point *hot, int rotation) { struct graphics_image_priv* ret = NULL; ret=g_new0(struct graphics_image_priv, 1); @@ -216,7 +218,8 @@ static struct graphics_image_priv *image_new(struct graphics_priv *gra, struct g id=(*jnienv)->CallIntMethod(jnienv, gra->Resources, gra->Resources_getIdentifier, string, a, gra->packageName); dbg(lvl_debug,"id=%d",id); if (id) - localBitmap=(*jnienv)->CallStaticObjectMethod(jnienv, gra->BitmapFactoryClass, gra->BitmapFactory_decodeResource, gra->Resources, id); + localBitmap=(*jnienv)->CallStaticObjectMethod(jnienv, gra->BitmapFactoryClass, gra->BitmapFactory_decodeResource, + gra->Resources, id); (*jnienv)->DeleteLocalRef(jnienv, a); } else { string = (*jnienv)->NewStringUTF(jnienv, path); @@ -316,7 +319,8 @@ static void draw_polygon(struct graphics_priv *gra, struct graphics_gc_priv *gc, static void draw_rectangle(struct graphics_priv *gra, struct graphics_gc_priv *gc, struct point *p, int w, int h) { initPaint(gra, gc); - (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_draw_rectangle, gc->gra->Paint, p->x, p->y, w, h); + (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_draw_rectangle, gc->gra->Paint, p->x, p->y, w, + h); } static void draw_circle(struct graphics_priv *gra, struct graphics_gc_priv *gc, struct point *p, int r) { @@ -325,25 +329,30 @@ static void draw_circle(struct graphics_priv *gra, struct graphics_gc_priv *gc, } -static void draw_text(struct graphics_priv *gra, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg, struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy) { +static void draw_text(struct graphics_priv *gra, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg, + struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy) { int bgcolor=0; dbg(lvl_debug,"enter %s", text); initPaint(gra, fg); if(bg) bgcolor=(bg->a<<24)| (bg->r<<16) | (bg->g<<8) | bg->b; jstring string = (*jnienv)->NewStringUTF(jnienv, text); - (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_draw_text, fg->gra->Paint, p->x, p->y, string, font->size, dx, dy, bgcolor); + (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_draw_text, fg->gra->Paint, p->x, p->y, string, + font->size, dx, dy, bgcolor); (*jnienv)->DeleteLocalRef(jnienv, string); } -static void draw_image(struct graphics_priv *gra, struct graphics_gc_priv *fg, struct point *p, struct graphics_image_priv *img) { +static void draw_image(struct graphics_priv *gra, struct graphics_gc_priv *fg, struct point *p, + struct graphics_image_priv *img) { dbg(lvl_debug,"enter %p",img); initPaint(gra, fg); - (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_draw_image, fg->gra->Paint, p->x, p->y, img->Bitmap); + (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_draw_image, fg->gra->Paint, p->x, p->y, + img->Bitmap); } -static void draw_image_warp (struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, struct graphics_image_priv *img) { +static void draw_image_warp (struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, + struct graphics_image_priv *img) { /* * @@ -354,7 +363,8 @@ static void draw_image_warp (struct graphics_priv *gr, struct graphics_gc_priv * if (count==3) { initPaint(gr, fg); - (*jnienv)->CallVoidMethod(jnienv, gr->NavitGraphics, gr->NavitGraphics_draw_image_warp, fg->gra->Paint, count, p[0].x, p[0].y,p[1].x, p[1].y, p[2].x, p[2].y, img->Bitmap); + (*jnienv)->CallVoidMethod(jnienv, gr->NavitGraphics, gr->NavitGraphics_draw_image_warp, fg->gra->Paint, count, + p[0].x, p[0].y,p[1].x, p[1].y, p[2].x, p[2].y, img->Bitmap); } else dbg(lvl_debug,"draw_image_warp is called with unsupported count parameter value %d", count); } @@ -372,7 +382,8 @@ static void draw_mode(struct graphics_priv *gra, enum draw_mode_num mode) { (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_draw_mode, (int)mode); } -static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound); +static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, + int w, int h, int wraparound); static void *get_data(struct graphics_priv *this, const char *type) { if (!strcmp(type,"padding")) @@ -385,7 +396,8 @@ static void *get_data(struct graphics_priv *this, const char *type) { static void image_free(struct graphics_priv *gr, struct graphics_image_priv *priv) { } -static void get_text_bbox(struct graphics_priv *gr, struct graphics_font_priv *font, char *text, int dx, int dy, struct point *ret, int estimate) { +static void get_text_bbox(struct graphics_priv *gr, struct graphics_font_priv *font, char *text, int dx, int dy, + struct point *ret, int estimate) { int len = g_utf8_strlen(text, -1); int xMin = 0; int yMin = 0; @@ -407,7 +419,8 @@ static void overlay_disable(struct graphics_priv *gra, int disable) { } static void overlay_resize(struct graphics_priv *gra, struct point *pnt, int w, int h, int wraparound) { - (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_overlay_resize, pnt ? pnt->x:0, pnt ? pnt->y:0, w, h, wraparound); + (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_overlay_resize, pnt ? pnt->x:0, pnt ? pnt->y:0, + w, h, wraparound); } static int set_attr(struct graphics_priv *gra, struct attr *attr) { @@ -533,7 +546,8 @@ static int set_activity(jobject graphics) { * @param wraparound (0 for the main view) * @param use_camera Whether to use the camera (0 for overlays) */ -static int graphics_android_init(struct graphics_priv *ret, struct graphics_priv *parent, struct point *pnt, int w, int h, int wraparound, int use_camera) { +static int graphics_android_init(struct graphics_priv *ret, struct graphics_priv *parent, struct point *pnt, int w, + int h, int wraparound, int use_camera) { struct callback *cb; jmethodID cid, Context_getPackageName; @@ -691,7 +705,8 @@ static int graphics_android_init(struct graphics_priv *ret, struct graphics_priv } static jclass NavitClass; -static jmethodID Navit_disableSuspend, Navit_exit, Navit_fullscreen, Navit_runOptionsItem, Navit_showMenu, Navit_showNativeKeyboard, Navit_hideNativeKeyboard; +static jmethodID Navit_disableSuspend, Navit_exit, Navit_fullscreen, Navit_runOptionsItem, Navit_showMenu, + Navit_showNativeKeyboard, Navit_hideNativeKeyboard; static int graphics_android_fullscreen(struct window *win, int on) { (*jnienv)->CallVoidMethod(jnienv, android_activity, Navit_fullscreen, on); @@ -714,7 +729,8 @@ static void graphics_android_disable_suspend(struct window *win) { * @param out Points to a buffer which will receive a pointer to the output of the command * @param valid */ -static void graphics_android_cmd_runMenuItem(struct graphics_priv *this, char *function, struct attr **in, struct attr ***out, int *valid) { +static void graphics_android_cmd_runMenuItem(struct graphics_priv *this, char *function, struct attr **in, + struct attr ***out, int *valid) { int ncmd=0; dbg(0,"Running %s",function); if(!strcmp(function,"map_download_dialog")) { @@ -738,7 +754,8 @@ static void graphics_android_cmd_runMenuItem(struct graphics_priv *this, char *f * @param out Points to a buffer which will receive a pointer to the output of the command * @param valid */ -static void graphics_android_cmd_menu(struct graphics_priv *this, char *function, struct attr **in, struct attr ***out, int *valid) { +static void graphics_android_cmd_menu(struct graphics_priv *this, char *function, struct attr **in, struct attr ***out, + int *valid) { dbg(lvl_debug, "enter"); (*jnienv)->CallVoidMethod(jnienv, android_activity, Navit_showMenu); } @@ -767,7 +784,8 @@ static struct command_table commands[] = { * * @return The new graphics instance */ -static struct graphics_priv *graphics_android_new(struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl) { +static struct graphics_priv *graphics_android_new(struct navit *nav, struct graphics_methods *meth, struct attr **attrs, + struct callback_list *cbl) { struct graphics_priv *ret; struct attr *attr; int use_camera=0; @@ -799,7 +817,7 @@ static struct graphics_priv *graphics_android_new(struct navit *nav, struct grap attr->u.color->r, attr->u.color->g, attr->u.color->b, attr->u.color->a, ret->bgcolor); } else { /* default is the same as for OSD */ - ret->bgcolor = 0x60000000; + ret->bgcolor = 0xa0000000; } if ((attr=attr_search(attrs, NULL, attr_use_camera))) { use_camera=attr->u.num; @@ -853,7 +871,8 @@ static struct graphics_priv *graphics_android_new(struct navit *nav, struct grap * * @return The graphics instance for the new overlay */ -static struct graphics_priv *overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound) { +static struct graphics_priv *overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, + int w, int h, int wraparound) { struct graphics_priv *ret=g_new0(struct graphics_priv, 1); *meth=graphics_methods; if (graphics_android_init(ret, gr, p, w, h, wraparound, 0)) { diff --git a/navit/icons/follow.svg b/navit/icons/follow.svg new file mode 100644 index 000000000..a78beb2c8 --- /dev/null +++ b/navit/icons/follow.svg @@ -0,0 +1,168 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="48" + height="48" + id="svg2" + version="1.1" + inkscape:version="0.92.3 (2405546, 2018-03-11)" + sodipodi:docname="follow.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"> + <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> + <radialGradient + r="60" + fy="72" + fx="72" + cy="72" + cx="72" + gradientUnits="userSpaceOnUse" + id="radialGradient3969" + xlink:href="#linearGradient3785" + inkscape:collect="always" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3785" + id="radialGradient3926" + gradientUnits="userSpaceOnUse" + cx="72" + cy="72" + fx="72" + fy="72" + r="60" /> + <linearGradient + id="linearGradient3785"> + <stop + id="stop3787" + offset="0" + style="stop-color:#3e3e3e;stop-opacity:1;" /> + <stop + id="stop3789" + offset="1" + style="stop-color:#000000;stop-opacity:1;" /> + </linearGradient> + <radialGradient + gradientUnits="userSpaceOnUse" + r="60" + fy="72" + fx="72" + cy="72" + cx="72" + id="radialGradient3791" + xlink:href="#linearGradient3785" + inkscape:collect="always" /> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="15.8125" + inkscape:cx="15.226152" + inkscape:cy="21.470355" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:window-width="1920" + inkscape:window-height="1000" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true" + inkscape:snap-others="false" + inkscape:object-nodes="false"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" + inkscape:locked="false" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + 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" /> + <path + inkscape:connector-curvature="0" + d="m 24,1022.544 c -3.214546,0 -5.818182,2.6036 -5.818182,5.8182 0,3.2146 2.603636,5.8182 5.818182,5.8182 3.214546,0 5.818182,-2.6036 5.818182,-5.8182 0,-3.2146 -2.603636,-5.8182 -5.818182,-5.8182 z m 13.003637,4.3636 c -0.669091,-6.0654 -5.483637,-10.88 -11.549091,-11.5491 v -2.9963 h -2.909092 v 2.9963 c -6.065454,0.6691 -10.88,5.4837 -11.549091,11.5491 H 8 v 2.9092 h 2.996363 c 0.669091,6.0654 5.483637,10.88 11.549091,11.5491 v 2.9963 h 2.909092 v -2.9963 c 6.065454,-0.6691 10.88,-5.4837 11.549091,-11.5491 H 40 v -2.9092 z M 24,1038.544 c -5.621818,0 -10.181818,-4.56 -10.181818,-10.1818 0,-5.6218 4.56,-10.1818 10.181818,-10.1818 5.621818,0 10.181818,4.56 10.181818,10.1818 0,5.6218 -4.56,10.1818 -10.181818,10.1818 z" + id="path2" + style="stroke-width:0.72727275;fill:#ffffff" /> + </g> +</svg> diff --git a/navit/icons/gui_android_menu.svg b/navit/icons/gui_android_menu.svg index b47eae076..d8c25757b 100644 --- a/navit/icons/gui_android_menu.svg +++ b/navit/icons/gui_android_menu.svg @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" @@ -9,112 +11,112 @@ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="48" height="48" - viewBox="0 0 48 48" id="svg2" version="1.1" - inkscape:version="0.91 r13725" - sodipodi:docname="gui_android_menu.svg"> - <metadata - id="metadata12"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> + inkscape:version="0.92.3 (2405546, 2018-03-11)" + sodipodi:docname="gui_android_menu.svg" + inkscape:export-filename="/home/vonglasowm/src/navit-goodies/png/xxhdpi/gui_menu_xxhdpi.png" + inkscape:export-xdpi="269.99988" + inkscape:export-ydpi="269.99988"> <defs - id="defs10" /> + 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> + </defs> <sodipodi:namedview + id="base" pagecolor="#ffffff" bordercolor="#666666" - borderopacity="1" - objecttolerance="10" - gridtolerance="10" - guidetolerance="10" - inkscape:pageopacity="0" + borderopacity="1.0" + inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:window-width="1280" - inkscape:window-height="948" - id="namedview8" - showgrid="true" - inkscape:zoom="9.8333333" - inkscape:cx="24" + inkscape:zoom="15.8125" + inkscape:cx="10.656127" inkscape:cy="24" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:window-width="1920" + inkscape:window-height="1000" inkscape:window-x="0" inkscape:window-y="24" inkscape:window-maximized="1" - inkscape:current-layer="svg2" - fit-margin-top="16" - fit-margin-bottom="16" - fit-margin-left="22" - fit-margin-right="22" - showguides="true" - inkscape:guide-bbox="true"> - <sodipodi:guide - position="0,12" - orientation="0,1" - id="guide4284" - inkscape:label="" - inkscape:color="rgb(0,0,255)" /> + inkscape:object-nodes="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true"> <sodipodi:guide - position="0,36" orientation="0,1" - id="guide4286" - inkscape:label="" - inkscape:color="rgb(0,0,255)" /> + position="0,40" + id="guide2985" + inkscape:locked="false" /> <sodipodi:guide - position="0,16" orientation="0,1" - id="guide4288" - inkscape:label="" - inkscape:color="rgb(0,0,255)" /> + position="0,8" + id="guide2987" + inkscape:locked="false" /> <sodipodi:guide - position="0,32" - orientation="0,1" - id="guide4290" - inkscape:label="" - inkscape:color="rgb(0,0,255)" /> - <sodipodi:guide - position="12,0" - orientation="1,0" - id="guide4292" - inkscape:label="" - inkscape:color="rgb(0,0,255)" /> - <sodipodi:guide - position="16,0" orientation="1,0" - id="guide4294" - inkscape:label="" - inkscape:color="rgb(0,0,255)" /> + position="8,0" + id="guide2989" + inkscape:locked="false" /> <sodipodi:guide - position="32,0" orientation="1,0" - id="guide4296" - inkscape:label="" - inkscape:color="rgb(0,0,255)" /> - <sodipodi:guide - position="36,0" - orientation="1,0" - id="guide4298" - inkscape:label="" - inkscape:color="rgb(0,0,255)" /> + position="40,0" + id="guide2991" + inkscape:locked="false" /> <inkscape:grid type="xygrid" - id="grid4300" /> + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> </sodipodi:namedview> - <circle - style="fill:#1a6cb6;stroke:none;stroke-width:0.79100001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;fill-opacity:1" - id="path4302" - cx="24" - cy="24" - r="24" /> - <path - d="m 24,20 c 1.1,0 2,-0.9 2,-2 0,-1.1 -0.9,-2 -2,-2 -1.1,0 -2,0.9 -2,2 0,1.1 0.9,2 2,2 z m 0,2 c -1.1,0 -2,0.9 -2,2 0,1.1 0.9,2 2,2 1.1,0 2,-0.9 2,-2 0,-1.1 -0.9,-2 -2,-2 z m 0,6 c -1.1,0 -2,0.9 -2,2 0,1.1 0.9,2 2,2 1.1,0 2,-0.9 2,-2 0,-1.1 -0.9,-2 -2,-2 z" - id="path6" - inkscape:connector-curvature="0" - style="fill:#ffffff" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + 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" /> + <path + inkscape:connector-curvature="0" + d="m 24,1020.3622 c 2.21,0 4,-1.79 4,-4 0,-2.21 -1.79,-4 -4,-4 -2.21,0 -4,1.79 -4,4 0,2.21 1.79,4 4,4 z m 0,4 c -2.21,0 -4,1.79 -4,4 0,2.21 1.79,4 4,4 2.21,0 4,-1.79 4,-4 0,-2.21 -1.79,-4 -4,-4 z m 0,12 c -2.21,0 -4,1.79 -4,4 0,2.21 1.79,4 4,4 2.21,0 4,-1.79 4,-4 0,-2.21 -1.79,-4 -4,-4 z" + id="path2" + style="fill:#ffffff" /> + </g> </svg> diff --git a/navit/icons/sound_off.svg b/navit/icons/sound_off.svg new file mode 100644 index 000000000..b721a7243 --- /dev/null +++ b/navit/icons/sound_off.svg @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="48" + height="48" + id="svg2" + version="1.1" + inkscape:version="0.92.3 (2405546, 2018-03-11)" + sodipodi:docname="sound_off.svg" + inkscape:export-filename="/home/michael/src/navit-artwork/gui_sound_off.png" + inkscape:export-xdpi="134.99994" + inkscape:export-ydpi="134.99994"> + <defs + 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> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="15.8125" + inkscape:cx="12.237154" + inkscape:cy="24" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:window-width="1920" + inkscape:window-height="1000" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1" + inkscape:object-nodes="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" + inkscape:locked="false" /> + <sodipodi:guide + orientation="0,1" + position="0,8" + id="guide2987" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" + inkscape:locked="false" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + 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" /> + <path + inkscape:connector-curvature="0" + d="m 32,1028.3622 c 0,-3.1378 -1.813333,-5.8489 -4.444444,-7.1556 v 3.9289 L 31.92,1029.5 c 0.05333,-0.3734 0.08,-0.7556 0.08,-1.1378 z m 4.444444,0 c 0,1.6711 -0.364444,3.2444 -0.96,4.6933 l 2.693334,2.6934 C 39.333333,1033.5355 40,1031.0289 40,1028.3622 c 0,-7.6089 -5.324444,-13.9733 -12.444444,-15.5911 v 3.6711 c 5.137777,1.5289 8.888888,6.2844 8.888888,11.92 z m -26.177777,-16 L 8,1014.6289 l 8.4,8.4 H 8 v 10.6666 h 7.111111 L 24,1042.5844 v -11.9555 l 7.564444,7.5644 c -1.191111,0.9156 -2.533333,1.6533 -4.008888,2.0978 v 3.6711 c 2.444444,-0.56 4.675555,-1.68 6.551111,-3.2178 l 3.626666,3.6178 2.266667,-2.2667 -16,-16 z M 24,1014.14 20.284444,1017.8555 24,1021.5711 Z" + id="path2" + style="stroke-width:0.8888889;fill:#ffffff" /> + </g> +</svg> diff --git a/navit/icons/sound_on.svg b/navit/icons/sound_on.svg new file mode 100644 index 000000000..ce405c97f --- /dev/null +++ b/navit/icons/sound_on.svg @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="48" + height="48" + id="svg2" + version="1.1" + inkscape:version="0.92.3 (2405546, 2018-03-11)" + sodipodi:docname="sound_on.svg" + inkscape:export-filename="/home/michael/src/navit-artwork/gui_sound.png" + inkscape:export-xdpi="134.99994" + inkscape:export-ydpi="134.99994"> + <defs + 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> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="15.8125" + inkscape:cx="21.249012" + inkscape:cy="24" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:window-width="1920" + inkscape:window-height="1000" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true" + inkscape:object-nodes="false"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" + inkscape:locked="false" /> + <sodipodi:guide + orientation="0,1" + position="0,8" + id="guide2987" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" + inkscape:locked="false" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + 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" /> + <path + inkscape:connector-curvature="0" + d="m 8,1023.0288 v 10.6666 h 7.111111 L 24,1042.5843 v -28.4444 l -8.888889,8.8889 z m 24,5.3333 c 0,-3.1378 -1.813333,-5.8489 -4.444444,-7.1555 v 14.32 C 30.186667,1034.211 32,1031.4999 32,1028.3621 Z m -4.444444,-15.5911 v 3.6711 c 5.137777,1.5289 8.888888,6.2845 8.888888,11.92 0,5.6356 -3.751111,10.3911 -8.888888,11.92 v 3.6711 C 34.675556,1042.3354 40,1035.9799 40,1028.3621 c 0,-7.6178 -5.324444,-13.9733 -12.444444,-15.5911 z" + id="path2" + style="stroke-width:0.8888889;fill:#ffffff" /> + </g> +</svg> diff --git a/navit/icons/zoom_auto.svg b/navit/icons/zoom_auto.svg new file mode 100644 index 000000000..9136b8dea --- /dev/null +++ b/navit/icons/zoom_auto.svg @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="48" + height="48" + id="svg2" + version="1.1" + inkscape:version="0.92.3 (2405546, 2018-03-11)" + sodipodi:docname="zoom_auto.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"> + <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" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="15.8125" + inkscape:cx="15.770278" + inkscape:cy="24" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:window-width="1920" + inkscape:window-height="1000" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1" + inkscape:object-nodes="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" + inkscape:locked="false" /> + <sodipodi:guide + orientation="0,1" + position="0,8" + id="guide2987" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" + inkscape:locked="false" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + 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 + id="g844" + transform="matrix(1.8296169,0,0,1.8296169,-19.444254,-858.16898)" + style="fill:#ffffff"> + <path + sodipodi:nodetypes="cccssssccccccsssss" + inkscape:connector-curvature="0" + id="path2" + d="m 27.5,1033.3622 h -0.79 l -0.28,-0.27 c 0.98,-1.14 1.57,-2.62 1.57,-4.23 0,-3.59 -2.91,-6.5 -6.5,-6.5 -3.59,0 -6.5,2.91 -6.5,6.5 0,3.59 2.91,6.5 6.5,6.5 1.61,0 3.09,-0.59 4.23,-1.57 l 0.27,0.28 v 0.79 l 5,4.99 1.49,-1.49 z m -6,0 c -2.49,0 -4.5,-2.01 -4.5,-4.5 0,-2.49 2.01,-4.5 4.5,-4.5 2.49,0 4.5,2.01 4.5,4.5 0,2.49 -2.01,4.5 -4.5,4.5 z" + style="fill:#ffffff" /> + <g + transform="translate(25.399517,1010.3004)" + id="text821-3" + style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + aria-label="A"> + <path + inkscape:connector-curvature="0" + id="path850" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:6.66666651px;font-family:Roboto;-inkscape-font-specification:'Roboto Bold';fill:#ffffff" + d="m -3.0453455,19.955254 h -1.7122396 l -0.3255208,0.976562 h -1.0384114 l 1.7643228,-4.739583 h 0.9049479 l 1.7740885,4.739583 h -1.0384114 z m -1.4485677,-0.791016 h 1.1848958 L -3.9047205,17.39015 Z" /> + </g> + </g> + </g> +</svg> diff --git a/navit/icons/zoom_in.svg b/navit/icons/zoom_in.svg index 18ff2dac8..cedcc7595 100644 --- a/navit/icons/zoom_in.svg +++ b/navit/icons/zoom_in.svg @@ -12,40 +12,90 @@ width="48" height="48" id="svg2" - sodipodi:version="0.32" - inkscape:version="0.48.0 r9654" + version="1.1" + inkscape:version="0.92.3 (2405546, 2018-03-11)" 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/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="9.2964433" + 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="1920" + inkscape:window-height="1000" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1" + inkscape:object-nodes="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" + inkscape:locked="false" /> + <sodipodi:guide + orientation="0,1" + position="0,8" + id="guide2987" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" + inkscape:locked="false" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> <metadata id="metadata7"> <rdf:RDF> @@ -54,47 +104,27 @@ <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> + <dc:title /> </cc:Work> </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"> + 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" /> <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" /> + inkscape:connector-curvature="0" + d="m 30.870212,1032.488 h -1.445398 l -0.512293,-0.494 c 1.793025,-2.0858 2.872499,-4.7936 2.872499,-7.7393 0,-6.5683 -5.324185,-11.8925 -11.89251,-11.8925 -6.568325,0 -11.89251,5.3242 -11.89251,11.8925 0,6.5683 5.324185,11.8925 11.89251,11.8925 2.945683,0 5.653516,-1.0795 7.73928,-2.8725 l 0.493996,0.5123 v 1.4454 l 9.148085,9.1298 L 40,1041.6361 Z m -10.977702,0 c -4.555746,0 -8.233276,-3.6775 -8.233276,-8.2333 0,-4.5557 3.67753,-8.2333 8.233276,-8.2333 4.555746,0 8.233276,3.6776 8.233276,8.2333 0,4.5558 -3.67753,8.2333 -8.233276,8.2333 z m 4.574042,-7.3185 h -3.659234 v 3.6593 h -1.829616 v -3.6593 h -3.659234 v -1.8296 h 3.659234 v -3.6592 h 1.829616 v 3.6592 h 3.659234 z" + id="path2" + style="stroke-width:1.8296169;fill:#ffffff" /> </g> </svg> diff --git a/navit/icons/zoom_manual.svg b/navit/icons/zoom_manual.svg new file mode 100644 index 000000000..bf3f0faed --- /dev/null +++ b/navit/icons/zoom_manual.svg @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="48" + height="48" + id="svg2" + version="1.1" + inkscape:version="0.92.3 (2405546, 2018-03-11)" + sodipodi:docname="zoom_manual.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"> + <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" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="15.8125" + inkscape:cx="13.376125" + inkscape:cy="24" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:window-width="1920" + inkscape:window-height="1000" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1" + inkscape:object-nodes="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" + inkscape:locked="false" /> + <sodipodi:guide + orientation="0,1" + position="0,8" + id="guide2987" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" + inkscape:locked="false" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + 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 + id="g841" + transform="matrix(1.8296169,0,0,1.8296169,-21.273871,-852.68013)" + style="fill:#ffffff"> + <path + sodipodi:nodetypes="cccssssccccccsssss" + inkscape:connector-curvature="0" + id="path2" + d="m 28.5,1030.3622 h -0.79 l -0.28,-0.27 c 0.98,-1.14 1.57,-2.62 1.57,-4.23 0,-3.59 -2.91,-6.5 -6.5,-6.5 -3.59,0 -6.5,2.91 -6.5,6.5 0,3.59 2.91,6.5 6.5,6.5 1.61,0 3.09,-0.59 4.23,-1.57 l 0.27,0.28 v 0.79 l 5,4.99 1.49,-1.49 z m -6,0 c -2.49,0 -4.5,-2.01 -4.5,-4.5 0,-2.49 2.01,-4.5 4.5,-4.5 2.49,0 4.5,2.01 4.5,4.5 0,2.49 -2.01,4.5 -4.5,4.5 z" + style="fill:#ffffff" /> + <g + transform="translate(13.033456,1016.3816)" + id="text821" + style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + aria-label="M"> + <path + inkscape:connector-curvature="0" + id="path847" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:6.66666651px;font-family:Roboto;-inkscape-font-specification:'Roboto Bold';fill:#ffffff" + d="M 8.2485857,7.1110504 9.4660335,10.54855 10.676971,7.1110504 h 1.282552 V 11.850634 H 10.979705 V 10.555061 L 11.077362,8.3187327 9.7980648,11.850634 H 9.1274919 L 7.8514503,8.3219879 7.9491065,10.555061 v 1.295573 H 6.972544 V 7.1110504 Z" /> + </g> + </g> + </g> +</svg> diff --git a/navit/icons/zoom_out.svg b/navit/icons/zoom_out.svg index 1d794efd2..907a703d3 100644 --- a/navit/icons/zoom_out.svg +++ b/navit/icons/zoom_out.svg @@ -12,48 +12,90 @@ width="48" height="48" id="svg2" - sodipodi:version="0.32" - inkscape:version="0.47 r22583" - 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.92.3 (2405546, 2018-03-11)" + sodipodi:docname="zoom_out.svg" + 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="9.2964433" + 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="1920" + inkscape:window-height="1000" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1" + inkscape:object-nodes="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true"> + <sodipodi:guide + orientation="0,1" + position="0,40" + id="guide2985" + inkscape:locked="false" /> + <sodipodi:guide + orientation="0,1" + position="0,8" + id="guide2987" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="8,0" + id="guide2989" + inkscape:locked="false" /> + <sodipodi:guide + orientation="1,0" + position="40,0" + id="guide2991" + inkscape:locked="false" /> + <inkscape:grid + type="xygrid" + id="grid3763" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> <metadata id="metadata7"> <rdf:RDF> @@ -62,47 +104,27 @@ <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> + <dc:title /> </cc:Work> </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" /> <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" /> + d="m 30.870212,1032.488 h -1.445398 l -0.512293,-0.494 c 1.793025,-2.0858 2.872499,-4.7936 2.872499,-7.7393 0,-6.5683 -5.324185,-11.8925 -11.89251,-11.8925 -6.568325,0 -11.89251,5.3242 -11.89251,11.8925 0,6.5683 5.324185,11.8925 11.89251,11.8925 2.945683,0 5.653516,-1.0795 7.73928,-2.8725 l 0.493996,0.5123 v 1.4454 l 9.148085,9.1298 L 40,1041.6361 Z m -10.977702,0 c -4.555746,0 -8.233276,-3.6775 -8.233276,-8.2333 0,-4.5557 3.67753,-8.2333 8.233276,-8.2333 4.555746,0 8.233276,3.6776 8.233276,8.2333 0,4.5558 -3.67753,8.2333 -8.233276,8.2333 z m -4.574042,-9.1481 h 9.148084 v 1.8296 h -9.148084 z" + id="path2" + style="stroke-width:1.8296169;fill:#ffffff" /> </g> </svg> diff --git a/navit/osd.c b/navit/osd.c index 086993941..8b548b044 100644 --- a/navit/osd.c +++ b/navit/osd.c @@ -298,7 +298,7 @@ void osd_set_std_attr(struct attr **attrs, struct osd_item *item, int flags) { item->color_bg.r = 0x0; item->color_bg.g = 0x0; item->color_bg.b = 0x0; - item->color_bg.a = 0x5fff; + item->color_bg.a = 0x9fff; } attr=attr_search(attrs, NULL, attr_osd_configuration); diff --git a/navit/osd/core/osd_core.c b/navit/osd/core/osd_core.c index 5450a4203..e1329ffe2 100644 --- a/navit/osd/core/osd_core.c +++ b/navit/osd/core/osd_core.c @@ -2195,7 +2195,7 @@ struct nav_toggle_announcer { /* FIXME this is actually the click callback, which is set once but never read. Do we need this? */ struct callback *navit_init_cb; char *icon_src; - int icon_h, icon_w, active, last_state; + int active, last_state; }; static void osd_nav_toggle_announcer_draw(struct osd_priv_common *opc, struct navit *navit, struct vehicle *v) { @@ -2205,8 +2205,8 @@ static void osd_nav_toggle_announcer_draw(struct osd_priv_common *opc, struct na int do_draw = opc->osd_item.do_draw; struct graphics_image *gr_image; char *path; - char *gui_sound_off = "gui_sound_off"; - char *gui_sound_on = "gui_sound"; + char *sound_off = "sound_off"; + char *sound_on = "sound_on"; struct attr attr, speechattr; if (!navit_get_attr(navit, attr_speech, &speechattr, NULL)) { @@ -2229,15 +2229,15 @@ static void osd_nav_toggle_announcer_draw(struct osd_priv_common *opc, struct na graphics_draw_rectangle(opc->osd_item.gr, opc->osd_item.graphic_bg, &p, opc->osd_item.w, opc->osd_item.h); if (this->active) - path = g_strdup_printf(this->icon_src, gui_sound_on); + path = g_strdup_printf(this->icon_src, sound_on); else - path = g_strdup_printf(this->icon_src, gui_sound_off); + path = g_strdup_printf(this->icon_src, sound_off); - gr_image = graphics_image_new_scaled(opc->osd_item.gr, path, this->icon_w, this->icon_h); + gr_image = graphics_image_new_scaled(opc->osd_item.gr, path, opc->osd_item.w, opc->osd_item.h); if (!gr_image) { g_free(path); path = graphics_icon_path("unknown.png"); - gr_image = graphics_image_new_scaled(opc->osd_item.gr, path, this->icon_w, this->icon_h); + gr_image = graphics_image_new_scaled(opc->osd_item.gr, path, opc->osd_item.w, opc->osd_item.h); } dbg(lvl_debug, "gr_image=%p", gr_image); @@ -2280,9 +2280,8 @@ static struct osd_priv *osd_nav_toggle_announcer_new(struct navit *nav, struct o meth->set_attr = set_std_osd_attr; osd_set_std_attr(attrs, &opc->osd_item, 0); + opc->osd_item.color_bg.a = 0x0000; - this->icon_w = -1; - this->icon_h = -1; this->last_state = -1; attr = attr_search(attrs, NULL, attr_icon_src); @@ -2291,10 +2290,10 @@ static struct osd_priv *osd_nav_toggle_announcer_new(struct navit *nav, struct o char **array; we = file_wordexp_new(attr->u.str); array = file_wordexp_get_array(we); - this->icon_src = g_strdup(array[0]); + this->icon_src = graphics_icon_path(array[0]); file_wordexp_destroy(we); } else - this->icon_src = graphics_icon_path("%s_32.xpm"); + this->icon_src = graphics_icon_path("%s"); opc->osd_item.command = g_strdup(command); diff --git a/navit/xslt/openmoko.xslt b/navit/xslt/openmoko.xslt index 2de3c0aab..dae507c90 100644 --- a/navit/xslt/openmoko.xslt +++ b/navit/xslt/openmoko.xslt @@ -1,7 +1,13 @@ <?xml version="1.0"?> <xsl:transform version="2.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="48"/> + <xsl:param name="ICON_MEDIUM" select="48"/> + <xsl:param name="ICON_BIG" select="96"/> + <xsl:param name="OSD_USE_OVERLAY">yes</xsl:param> + <xsl:output method="xml" doctype-system="navit.dtd" cdata-section-elements="gui"/> <xsl:include href="navit_drag_bitmap.xslt"/> - <xsl:include href="osd_enable_zoom.xslt"/> + <xsl:include href="osd_minimum.xslt"/> <xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template> </xsl:transform> diff --git a/navit/xslt/osd_android.xslt b/navit/xslt/osd_android.xslt index a15d4f34d..96dce2449 100644 --- a/navit/xslt/osd_android.xslt +++ b/navit/xslt/osd_android.xslt @@ -3,6 +3,6 @@ <xsl:template match="/config/navit/osd[last()]"> <xsl:copy><xsl:copy-of select="@*|node()"/></xsl:copy> <xsl:text>
 </xsl:text> - <osd type="button" src="gui_android_menu_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="graphics.menu()" x="{round(-60*number($OSD_SIZE))}" y="{round(48*number($OSD_SIZE))}" enable_expression="!has_menu_button" use_overlay="yes"/> + <osd type="button" src="gui_android_menu" command="graphics.menu()" x="{round(-(number($ICON_BIG)+8*number($OSD_SIZE)))}" y="{round(62*number($OSD_SIZE))}" w="{round(number($ICON_MEDIUM))}" h="{round(number($ICON_MEDIUM))}" enable_expression="!has_menu_button" use_overlay="yes"/> </xsl:template> </xsl:transform> diff --git a/navit/xslt/osd_minimum.xslt b/navit/xslt/osd_minimum.xslt index fc4e1f593..b0e310aae 100644 --- a/navit/xslt/osd_minimum.xslt +++ b/navit/xslt/osd_minimum.xslt @@ -5,27 +5,35 @@ <xsl:param name="NEXT_TURN_TEXT_HIGHT"><xsl:value-of select="round(20*number($OSD_SIZE))"/></xsl:param> <xsl:param name="OSD_USE_OVERLAY"><xsl:value-of select="$OSD_USE_OVERLAY='yes' or $OSD_USE_OVERLAY='true' or $OSD_USE_OVERLAY='1'"/></xsl:param> - <osd type="compass" enabled="yes" x="{round(-60*number($OSD_SIZE))}" y="{round(-80*number($OSD_SIZE))}" w="{round(60*number($OSD_SIZE))}" h="{round(80*number($OSD_SIZE))}" font_size="{round(200*number($OSD_SIZE))}" enable_expression="vehicle.position_valid"/> + <osd type="text" label="${{navigation.item[1].name}}" x="0" y="0" w="100%" h="{round(14*number($OSD_SIZE))}" font_size="{round(200*number($OSD_SIZE))}" enable_expression="navigation.nav_status>=3"/> <xsl:text>
 </xsl:text> - <osd type="text" label="${{navigation.item.destination_length[named]}}\n${{navigation.item.destination_time[arrival]}}" x="{round(-60*number($OSD_SIZE))}" y="0" w="{round(60*number($OSD_SIZE))}" h="{round(40*number($OSD_SIZE))}" font_size="{round(200*number($OSD_SIZE))}" enable_expression="navigation.nav_status>=3"/> + <osd type="compass" enabled="yes" x="{round(-60*number($OSD_SIZE))}" y="{round(-94*number($OSD_SIZE))}" w="{round(60*number($OSD_SIZE))}" h="{round(80*number($OSD_SIZE))}" font_size="{round(200*number($OSD_SIZE))}" enable_expression="vehicle.position_valid"/> <xsl:text>
 </xsl:text> - <osd type="navigation_status" x="0" y="{-($NEXT_TURN_SIZE+$NEXT_TURN_TEXT_HIGHT)}" w="{$NEXT_TURN_SIZE+$NEXT_TURN_TEXT_HIGHT}" h="{$NEXT_TURN_SIZE+$NEXT_TURN_TEXT_HIGHT}" icon_src="%s_wh_{$ICON_BIG}_{$ICON_BIG}.png" enable_expression="navigation.nav_status==-1 || navigation.nav_status==1 || navigation.nav_status==2"/> + <osd type="text" label="${{navigation.item.destination_length[named]}}\n${{navigation.item.destination_time[arrival]}}" x="{round(-60*number($OSD_SIZE))}" y="{round(14*number($OSD_SIZE))}" w="{round(60*number($OSD_SIZE))}" h="{round(40*number($OSD_SIZE))}" font_size="{round(200*number($OSD_SIZE))}" enable_expression="navigation.nav_status>=3"/> <xsl:text>
 </xsl:text> - <osd type="navigation_next_turn" x="0" y="{-($NEXT_TURN_SIZE+$NEXT_TURN_TEXT_HIGHT)}" w="{$NEXT_TURN_SIZE+$NEXT_TURN_TEXT_HIGHT}" h="{$NEXT_TURN_SIZE}" icon_src="%s_wh_{$ICON_BIG}_{$ICON_BIG}.png" enable_expression="navigation.nav_status>=3"/> + <osd type="navigation_status" x="0" y="0" w="{$NEXT_TURN_SIZE}" h="{$NEXT_TURN_SIZE}" icon_w="{round(number($ICON_BIG))}" icon_h="{round(number($ICON_BIG))}" icon_src="%s_wh" enable_expression="navigation.nav_status==-1 || navigation.nav_status==1 || navigation.nav_status==2"/> <xsl:text>
 </xsl:text> - <osd type="text" label="${{navigation.item[1].length[named]}}" x="0" y="{-$NEXT_TURN_TEXT_HIGHT}" w="{$NEXT_TURN_SIZE+$NEXT_TURN_TEXT_HIGHT}" h="{$NEXT_TURN_TEXT_HIGHT}" font_size="{round(200*number($OSD_SIZE))}" enable_expression="navigation.nav_status>=3"/> + <osd type="navigation_next_turn" x="0" y="{round(14*number($OSD_SIZE))}" w="{$NEXT_TURN_SIZE}" h="{$NEXT_TURN_SIZE}" icon_w="{round(number($ICON_BIG))}" icon_h="{round(number($ICON_BIG))}" icon_src="%s_wh" enable_expression="navigation.nav_status>=3"/> <xsl:text>
 </xsl:text> - <osd type="button" src="gui_zoom_manual_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="autozoom_active=0" x="0" y="0" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}" enable_expression="autozoom_active!=0"/> + <osd type="text" label="${{navigation.item[1].length[value]}}" x="0" y="{round(14*number($OSD_SIZE))+$NEXT_TURN_SIZE}" w="{$NEXT_TURN_SIZE}" h="{$NEXT_TURN_TEXT_HIGHT}" font_size="{round(260*number($OSD_SIZE))}" enable_expression="navigation.nav_status>=3"/> <xsl:text>
 </xsl:text> - <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"/> + <osd type="text" label="${{navigation.item[1].length[unit]}}" x="0" y="{round(14*number($OSD_SIZE))+$NEXT_TURN_SIZE+$NEXT_TURN_TEXT_HIGHT}" w="{$NEXT_TURN_SIZE}" h="{$NEXT_TURN_TEXT_HIGHT}" font_size="{round(200*number($OSD_SIZE))}" enable_expression="navigation.nav_status>=3"/> <xsl:text>
 </xsl:text> - <osd type="button" src="gui_zoom_in_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="zoom_in()" x="0" y="{round(number($ICON_BIG)+8*number($OSD_SIZE))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}"/> + <osd type="text" label="${{tracking.item.street_name}} ${{tracking.item.street_name_systematic}}" x="0" y="{round(-14*number($OSD_SIZE))}" w="100%" h="{round(14*number($OSD_SIZE))}" font_size="{round(200*number($OSD_SIZE))}" enable_expression="vehicle.position_valid"/> <xsl:text>
 </xsl:text> - <osd type="button" src="gui_zoom_out_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="zoom_out()" x="0" y="{round(2*(number($ICON_BIG)+8*number($OSD_SIZE)))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}"/> + <osd type="toggle_announcer" icon_src="%s" x="{round(-(number($ICON_MEDIUM)+8*number($OSD_SIZE)))}" y="{round(-(number($ICON_MEDIUM)+8*number($OSD_SIZE))-94*number($OSD_SIZE))}" w="{round(number($ICON_MEDIUM))}" h="{round(number($ICON_MEDIUM))}"/> <xsl:text>
 </xsl:text> - <osd type="cmd_interface" update_period="1" command="pitch=autozoom_active==0?pitch:(follow>1?0:20);orientation=autozoom_active==0?orientation:(follow>1?0:-1)" x="-1" y="-1" w="1" h="1"/> + <osd type="button" src="zoom_manual" command="autozoom_active=0" x="{round(8*number($OSD_SIZE))}" y="{-round(number($ICON_MEDIUM)+22*number($OSD_SIZE))}" w="{round(number($ICON_MEDIUM))}" h="{round(number($ICON_MEDIUM))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}" enable_expression="autozoom_active!=0"/> + <xsl:text>
 </xsl:text> + <osd type="button" src="zoom_auto" command="autozoom_active=1" x="{round(8*number($OSD_SIZE))}" y="{-round(number($ICON_MEDIUM)+22*number($OSD_SIZE))}" w="{round(number($ICON_MEDIUM))}" h="{round(number($ICON_MEDIUM))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}" enable_expression="autozoom_active==0"/> + <xsl:text>
 </xsl:text> + <osd type="button" src="zoom_in" command="zoom_in()" x="{round((number($ICON_MEDIUM)+8*number($OSD_SIZE))+8*number($OSD_SIZE))}" y="{-round(number($ICON_MEDIUM)+22*number($OSD_SIZE))}" w="{round(number($ICON_MEDIUM))}" h="{round(number($ICON_MEDIUM))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}"/> <xsl:text>
 </xsl:text> - <osd type="button" src="cursor_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="follow=0;set_center_cursor()" x="{round(number($ICON_BIG)+8*number($OSD_SIZE))}" y="0" enable_expression="follow>1" use_overlay="{$OSD_USE_OVERLAY}"/> + <osd type="button" src="zoom_out" command="zoom_out()" x="{round(2*(number($ICON_MEDIUM)+8*number($OSD_SIZE))+8*number($OSD_SIZE))}" y="{-round(number($ICON_MEDIUM)+22*number($OSD_SIZE))}" w="{round(number($ICON_MEDIUM))}" h="{round(number($ICON_MEDIUM))}" osd_configuration="1" use_overlay="{$OSD_USE_OVERLAY}"/> + <xsl:text>
 </xsl:text> + <osd type="button" src="follow" command="follow=0;set_center_cursor()" x="{round(8*number($OSD_SIZE))}" y="{round(-2*(number($ICON_MEDIUM)+8*number($OSD_SIZE))-14*number($OSD_SIZE))}" w="{round(number($ICON_MEDIUM))}" h="{round(number($ICON_MEDIUM))}" enable_expression="follow>1" use_overlay="{$OSD_USE_OVERLAY}"/> + <xsl:text>
 </xsl:text> + <osd type="cmd_interface" update_period="1" command="pitch=autozoom_active==0?pitch:(follow>1?0:20);orientation=autozoom_active==0?orientation:(follow>1?0:-1)" x="-1" y="-1" w="1" h="1"/> <xsl:text>
 </xsl:text> <xsl:copy><xsl:copy-of select="@*|node()"/></xsl:copy> </xsl:template> 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>
 </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>
 </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>
 </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>
 </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>
 </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>
 </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>
 </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>
 </xsl:text> - <xsl:copy> - <xsl:apply-templates select="@*"/> - <xsl:apply-templates select="node()"/> - </xsl:copy> - </xsl:template> - </xsl:stylesheet> diff --git a/navit/xslt/tomtom.xslt b/navit/xslt/tomtom.xslt index fd8031ea2..dac69f3d3 100644 --- a/navit/xslt/tomtom.xslt +++ b/navit/xslt/tomtom.xslt @@ -1,7 +1,13 @@ <?xml version="1.0"?> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0"> + <xsl:param name="OSD_SIZE" select="1"/> + <xsl:param name="ICON_SMALL" select="24"/> + <xsl:param name="ICON_MEDIUM" select="24"/> + <xsl:param name="ICON_BIG" select="48"/> + <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"/> <xsl:template match="/"> <xsl:apply-templates select="config"/> @@ -22,17 +28,6 @@ <xsl:attribute name="recent_dest">25</xsl:attribute> <graphics type="sdl" w="480" h="272" bpp="16" frame="0" flags="1"/> <xsl:copy-of select="gui[@type='internal']"/> - <osd enabled="yes" type="text" x="80" y="0" w="320" h="40" font_size="360" align="0" label="${{tracking.item.street_name}} ${{tracking.item.street_name_systematic}}" background_color="#00008080"/> - <osd enabled="yes" type="text" x="80" y="232" w="80" h="40" font_size="360" align="0" label="${{navigation.item[1].length[named]}}" background_color="#00008080"/> - <osd enabled="yes" type="text" x="160" y="232" w="240" h="40" font_size="360" align="0" label="${{vehicle.position_speed}} / ${{tracking.item.route_speed}}" background_color="#00008080"/> - <osd enabled="yes" type="text" x="400" y="232" w="80" h="40" font_size="360" align="0" label="${{navigation.item.destination_length[named]}}" background_color="#00008080"/> - <osd enabled="yes" type="text" x="400" y="192" w="80" h="40" font_size="360" align="0" label="${{navigation.item.destination_time[arrival]}}" background_color="#00008080"/> - <osd enabled="yes" type="compass" x="400" y="80" w="80" h="112" background_color="#00008080" font_size="300"/> - <osd enabled="yes" type="gps_status" x="0" y="80" w="80" h="40" background_color="#00008080"/> - <osd enabled="yes" type="speed_warner" x="0" y="120" w="80" h="72" background_color="#00008080" font_size="300"/> - <osd enabled="yes" type="navigation_next_turn" x="0" y="192" w="80" h="80" icon_w="48" icon_h="48" icon_src="%s_wh_48_48.png" background_color="#00008080"/> - <osd enabled="yes" type="button" x="400" y="0" command="zoom_in()" src="tomtom_plus_80_80.png"/> - <osd enabled="yes" type="button" x="0" y="0" command="zoom_out()" src="tomtom_minus_80_80.png"/> <vehicle name="Local GPS" profilename="car" enabled="yes" active="yes" follow="1" source="file:/var/run/gpspipe"> <!-- Navit can write a tracklog in several formats (gpx, nmea or textfile): --> <log enabled="no" type="gpx" attr_types="position_time_iso8601,position_direction,position_speed,position_radius" data="/mnt/sdcard/navit/track_%Y%m%d-%%i.gpx" flush_size="1000" flush_time="30"/> diff --git a/navit/xslt/wince.xslt b/navit/xslt/wince.xslt index 1b0c0d230..c5f75bf0d 100644 --- a/navit/xslt/wince.xslt +++ b/navit/xslt/wince.xslt @@ -1,6 +1,13 @@ <?xml version="1.0"?> <xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude"> + <xsl:param name="OSD_SIZE" select="1"/> + <xsl:param name="ICON_SMALL" select="24"/> + <xsl:param name="ICON_MEDIUM" select="24"/> + <xsl:param name="ICON_BIG" select="48"/> + <xsl:param name="OSD_USE_OVERLAY">yes</xsl:param> + <xsl:output method="xml" doctype-system="navit.dtd" cdata-section-elements="gui"/> + <xsl:include href="osd_minimum.xslt"/> <xsl:template match="/config/navit/vehicle[@enabled='yes']"> <xsl:copy> <xsl:copy-of select="@*[name() != 'gpsd_query']"/> |