#13458 closed enhancement (fixed)
display external resources icons in the preferences
Reported by: | Klumbumbus | Owned by: | Don-vip |
---|---|---|---|
Priority: | normal | Milestone: | 19.06 |
Component: | Core | Version: | |
Keywords: | icon | Cc: | naoliv |
Description
It would be nice if the lists of "external" resources in the preferences also display the icons. This applies to
- Styles (Help/Preferences/Map)
- Presets (Help/Preferences/Map#TaggingPresets)
- Rules (Help/Preferences/Validator)
- Imageries (Help/Preferences/Imagery)
Attachments (2)
Change History (25)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Cc: | added |
---|
comment:3 by , 6 years ago
Keywords: | icon added |
---|
comment:4 by , 6 years ago
Milestone: | → 19.06 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:6 by , 6 years ago
Great thanks!
I noticed two things: the icons are stretched, see e.g. the Bus lane preset and the internal icon is totally messed up.
by , 6 years ago
comment:10 by , 6 years ago
by , 6 years ago
Attachment: | worksforme13458.PNG added |
---|
comment:13 by , 6 years ago
Replying to Don-vip:
Can you please try with josm-latest.jar?
Same problem there.
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-07-06 22:47:06 +0200 (Sat, 06 Jul 2019) Build-Date:2019-07-06 21:01:04 Revision:15214 Relative:URL: ^/trunk Identification: JOSM/1.5 (15214 en) Windows 10 64-Bit OS Build number: Windows 10 Pro 1803 (17134) Memory Usage: 927 MB / 1804 MB (263 MB allocated, but free) Java version: 1.8.0_211-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 1680x1050 Maximum Screen Size: 1680x1050
comment:14 by , 6 years ago
It's weird, I don't know what's going on on your machine. Do you have another one to test?
comment:16 by , 5 years ago
Here on another pc it works fine:
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-07-07 14:17:28 +0200 (Sun, 07 Jul 2019) Build-Date:2019-07-07 12:18:47 Revision:15221 Relative:URL: ^/trunk Identification: JOSM/1.5 (15221 de) Windows 10 64-Bit OS Build number: Windows 10 Pro 1803 (17134) Memory Usage: 422 MB / 892 MB (255 MB allocated, but free) Java version: 1.8.0_211-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 1366x768 Maximum Screen Size: 1366x768 Dataset consistency test: No problems found
I'll try another one tonight.
comment:17 by , 5 years ago
Same glitch here on 3rd (but similar to 1st) pc (this time with java 11 though)
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-07-07 18:36:38 +0200 (Sun, 07 Jul 2019) Revision:15226 Build-Date:2019-07-07 16:37:55 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (15226 en) Windows 10 64-Bit OS Build number: Windows 10 Pro 1803 (17134) Memory Usage: 620 MB / 2026 MB (187 MB allocated, but free) Java version: 11.0.2+9-LTS, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 2160x1440 Maximum Screen Size: 2160x1440
comment:18 by , 5 years ago
Not sure if it is good or bad, but this fixes it for me:
-
MapPaintPrefHelper.java
83 83 ExtendedSourceEntry defJosmMapcss = new ExtendedSourceEntry(type, "elemstyles.mapcss", "resource://styles/standard/elemstyles.mapcss"); 84 84 defJosmMapcss.active = true; 85 85 defJosmMapcss.name = "standard"; 86 defJosmMapcss.icon = new ImageProvider("logo ").getResource();86 defJosmMapcss.icon = new ImageProvider("logo.svg").getResource(); 87 87 defJosmMapcss.title = tr("JOSM default (MapCSS)"); 88 88 defJosmMapcss.description = tr("Internal style to be used as base for runtime switchable overlay styles"); 89 89 ExtendedSourceEntry defPL2 = new ExtendedSourceEntry(type, "potlatch2.mapcss", "resource://styles/standard/potlatch2.mapcss"); -
PresetPrefHelper.java
30 30 public Collection<ExtendedSourceEntry> getDefault() { 31 31 ExtendedSourceEntry i = new ExtendedSourceEntry(type, "defaultpresets.xml", "resource://data/defaultpresets.xml"); 32 32 i.title = tr("Internal Preset"); 33 i.icon = new ImageProvider("logo ").getResource();33 i.icon = new ImageProvider("logo.svg").getResource(); 34 34 i.description = tr("The default preset for JOSM"); 35 35 return Collections.singletonList(i); 36 36 } -
ValidatorPrefHelper.java
85 85 private void addDefault(List<ExtendedSourceEntry> defaults, String filename, String title, String description) { 86 86 ExtendedSourceEntry i = new ExtendedSourceEntry(type, filename+".mapcss", "resource://data/validator/"+filename+".mapcss"); 87 87 i.title = title; 88 i.icon = new ImageProvider("logo ").getResource();88 i.icon = new ImageProvider("logo.svg").getResource(); 89 89 i.description = description; 90 90 defaults.add(i); 91 91 }
comment:19 by , 5 years ago
Hmm, do you have a "logo.png" file with the displayed image somewhere in your image search paths?
comment:21 by , 5 years ago
follow-up: 23 comment:22 by , 5 years ago
I just have fixed EJML plugin, please update in 10 minutes: [o35049:35050].
comment:23 by , 5 years ago
Replying to Don-vip:
I just have fixed EJML plugin, please update in 10 minutes: [o35049:35050].
Yes, that fixed it.
Ticket #14023 has been marked as a duplicate of this ticket.