Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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)

JOSM-BigSur-Pencil.png (76.9 KB ) - added by Stereo 3 years ago.

Download all attachments as: .zip

Change History (16)

by Stereo, 3 years ago

Attachment: JOSM-BigSur-Pencil.png added

comment:1 by Stereo, 3 years ago

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.)

comment:2 by Don-vip, 3 years ago

Owner: changed from team to Stereo
Status: newneedinfo
Type: defectenhancement

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 Don-vip, 3 years ago

Milestone: 20.1120.12

comment:4 by Stereo, 3 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?

in reply to:  4 comment:5 by Don-vip, 3 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:6 by Stereo, 3 years ago

CachedFile is beyond my java-fu :). Is it worth it for 77KB?

comment:7 by Don-vip, 3 years ago

Yes. For the URL please use https://josm.openstreetmap.de/logo-macos.png I just added the rewrite rule.

comment:8 by Stereo, 3 years ago

Keywords: macos added

comment:9 by Stereo, 3 years ago

Fix in #20257

comment:10 by stoecker, 3 years ago

Milestone: 20.1221.01

comment:11 by Don-vip, 3 years ago

Milestone: 21.0121.02

comment:12 by Stereo, 3 years ago

Milestone: 21.0221.01
Status: needinfonew

comment:13 by Stereo, 3 years ago

Status: newassigned

comment:14 by Stereo, 3 years ago

Resolution: fixed
Status: assignedclosed

comment:15 by stoecker, 3 years ago

Milestone: 21.0121.02

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Stereo.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.