Skip to content

Broken transparency handling for shell icons #483

@HeikoKlare

Description

@HeikoKlare

Mirror ticket for:

Reproducer:

import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;

public class ImageWithNoTransparencyMaskOnShell {
    public static void main(String[] args) {
    	System.setProperty("swt.autoScale.updateOnRuntime", "true");
    	System.setProperty("swt.autoScale", "quarter");
        Display display = new Display();
        Shell shell = new Shell(display);
        shell.setText("Image With No Transparency Mask on Shell");
        shell.setSize(600, 600);
		Image image = new Image(display, ButtonWithGifImage.class.getResourceAsStream("png-image.png"));
		shell.setImage(image);

        shell.open();
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
                display.sleep();
        }

        image.dispose();
        display.dispose();
    }
}

Metadata

Metadata

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWTregression

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions