Jpackage ignores @2x-files

Michael Paus mp at jugs.org
Sat Nov 16 13:20:47 UTC 2019


Done: https://bugs.openjdk.java.net/browse/JDK-8234284
--Michael

Am 15.11.19 um 19:23 schrieb core-libs-dev-request at openjdk.java.net:
> Message: 5
> Date: Fri, 15 Nov 2019 09:05:26 -0800
> From: Phil Race <philip.race at oracle.com>
> To: core-libs-dev at openjdk.java.net
> Subject: Re: Jpackage ignores @2x-files
> Message-ID: <c48add60-766f-5843-9cfb-4dc88dda7f2e at oracle.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Submit a bug for tools/jpackage.
> Assuming this is just a missed copy it should be easy to fix.
>
> -phil.
>
> On 11/15/19 5:30 AM, Michael Paus wrote:
>> Hi,
>> I am trying to customize a DMG built with jpackage.
>> I have therefore placed two images into the configured resource folder.
>>
>> myApp-background.png
>> myApp-background at 2x.png
>>
>> The assumption is that when you open the DMG on a Mac with a retina
>> display,
>> it should automatically use the @2x-version of the file in order to
>> get a clear
>> and crisp rendering.
>>
>> But this does not work because jpackage only picks up the first file
>> from the
>> resource folder but not the second one. So this file is never copied
>> into the
>> DMG and thus the rendering of the image on a retina display does not
>> look nice.
>>
>> Michael
>>



More information about the core-libs-dev mailing list