Fixed: Copying to clipboard does not support transparency

This commit is contained in:
Jindra Petřík
2021-02-28 20:03:20 +01:00
parent 6c56fbeeb1
commit b9e60534cf
5 changed files with 36 additions and 1 deletions

View File

@@ -171,6 +171,14 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
listeners.remove(listener);
}
@Override
public Color getBackgroundColor() {
if (swf != null && swf.getBackgroundColor() != null) {
return swf.getBackgroundColor().backgroundColor.toColor();
}
return Color.white;
}
private class IconPanel extends JPanel {
private SerializableImage _img;