Open aerostitch opened 15 years ago
navit-iconsfix.patch
(0.0 KiB)The patch is not compleetly ok yet.
navit_icons_su.txt
(0.7 KiB)Some icons of which the name in navit/navit_shipped.xmland the available file don't match. This might not be all.
The following icons are available as png and as svg.
cursor cursor225 cursor450 cursor675 cursor_still navit
which leaves
osd_minus osd_plus
to be converted from png to svg.
The following are available as xpm and svg.
airport attraction bank bar boat_ramp bus church cinema cursor exit fastfood firebrigade fuel hospital peak police post shopping traffic_signals zoom_in zoom_out
which leaves
bench biergarten boundary_stone bus_halt cafe camping car_dealer castle cemetery dumping_station flag_bk_tr flag_bk_wh flag_bl_wh flag_wh_bk fountain gc_event gc_multi gc_mystery gc_question gc_reference gc_stages gc_tradi gc_webcam golf gui_sound_32 gui_sound_off_32 heliport highway_exit hotel hunting_stand information justice level_crossing library memorial menu military mini_roundabout museum nav_left_1 nav_left_1_32 nav_left_2 nav_left_2_32 nav_right_1 nav_right_1_32 nav_right_2 nav_right_2_32 nav_straight nav_straight_32 parking pharmacy picnic potable_water public_office restaurant restroom ruins school shelter skiing sport swimming telephone theater toggle_fullscreen toilets tower townhall trailerpark unknown viewpoint wifi zoo
to be converted to svg.
So the simplest would be to convert the leftovers (should be done anyway), change the navit.xml to only use svgs and provide an xslt to navit.xml for changing to png if desired. What do you think?
svgs.tar.bz2
(2.0 KiB)Created svg files from xpm files via convert inkscape for directory navit/navit/xpm/.
The conversion didn't work out yet
trac476-1.diff
(25.5 KiB)navit.xml.diff to cleanup missing icons
Attached a diff to clean up navit_shipped.xml. I:
- replaced .xpm files with .svg where they were already available.
- deleted all icons referred to for which there are no icons
This will result in more icons being displayed, and they will be resized at compile time by using .png files. Haven't found a working xpm to svg tool, e.g. Inkscape wraps a link to the original .xpm in xml, hardly consider this conversion. Briefly tested on N800 in Toronto area. Previous complaints from Navit about restaurant and parking no longer appear.
Re: the original comment "Current both xpm and svg files are used for icons. Wouldn't it be best to only use xpm?", it is best to use svg because for at least the Nokia N8x0 we convert svg to presized .png files. These load very fast as no resizing processing is needed (as well as the N8x0 not supporting .svg files in the first place!) For larger screens .svg's might render better than scaled up .xpm files. see Trac 284 for details on the code change made to support that.
We currently working on creating a new concept of unified styles and icons, so we will take care, that there are no broken icon references anymore. https://forum.navit-project.org/viewtopic.php?f=19&t=409
For cleanup reasons, I closed this ticket.
Cleaning up old tickets is a good idea, but only if the problem is actually fixed. So I'm reopening this ticket. The ticket has the keyword "xpm"; if the new concept works, all the "xpm" tickets can probably be closed, including this one.
Issue migrated from trac ticket # 476
component: core | priority: major | keywords: xpm
2009-09-26 06:47:53: worldcitizen created the issue