#20133 closed enhancement (fixed)
Set macOS icon on macOS startup
Reported by: | Stereo | Owned by: | Stereo |
---|---|---|---|
Priority: | normal | Milestone: | 21.02 |
Component: | Installer MacOS | Version: | latest |
Keywords: | macos | Cc: |
Description
In src/org/openstreetmap/josm/tools/PlatformHookOsx.java
, line 84 updates the dock icon:
eawtApplication.getDeclaredMethod("setDockIconImage", Image.class).invoke(appli, ImageProvider.get("logo").getImage());
This sets the icon to the 'normal' icon instead of the macOS icon.
The line should be updated to read
eawtApplication.getDeclaredMethod("setDockIconImage", Image.class).invoke(appli, ImageProvider.get("JOSM-BigSur-Pencil").getImage());
The image JOSM-BigSur-Pencil.png is attached to the ticket.
Attachments (1)
Change History (16)
by , 4 years ago
Attachment: | JOSM-BigSur-Pencil.png added |
---|
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
Type: | defect → enhancement |
I already added the SVG in r17319 (in nodist folder).
What should be done is update the build file so that the SVG is copied into jar file, but only for macOS build.
comment:3 by , 4 years ago
Milestone: | 20.11 → 20.12 |
---|
follow-up: 5 comment:4 by , 4 years ago
I think it has to be png.
I can tell the build script to copy the png from nodist to the actual directory when it builds the jar, but then it won't be in the jnlp jar. Is that what we want?
comment:5 by , 4 years ago
Replying to Stereo:
I can tell the build script to copy the png from nodist to the actual directory when it builds the jar, but then it won't be in the jnlp jar.
Good catch. You're right, I don't want that. Other option is to not include it in jar file at all and download it from JOSM server the first time and cache it automatically (using CachedFile
).
comment:7 by , 4 years ago
Yes. For the URL please use https://josm.openstreetmap.de/logo-macos.png I just added the rewrite rule.
comment:8 by , 4 years ago
Keywords: | macos added |
---|
comment:10 by , 4 years ago
Milestone: | 20.12 → 21.01 |
---|
comment:11 by , 4 years ago
Milestone: | 21.01 → 21.02 |
---|
comment:12 by , 4 years ago
Milestone: | 21.02 → 21.01 |
---|---|
Status: | needinfo → new |
comment:13 by , 4 years ago
Status: | new → assigned |
---|
comment:14 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Oh, and this will also fix the macOS icon for people who use the jnlp (although I think it should be deprecated for macOS as it doesn't support high resolution displays, etc.)