From 079d8758347386812205f3351ec60a3fbd959171 Mon Sep 17 00:00:00 2001 From: Glavo Date: Mon, 19 Jan 2026 20:58:19 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#5256:=20=E4=BF=AE=E5=A4=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20GIF=20=E8=83=8C=E6=99=AF=E6=97=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E4=B8=8D=E9=80=8F=E6=98=8E=E5=BA=A6=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=90=AF=E5=8A=A8=E5=99=A8=E5=B4=A9=E6=BA=83=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jackhuang/hmcl/ui/decorator/DecoratorController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java index 64601aa68c..34ee72b71b 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java @@ -264,7 +264,7 @@ private Background getBackground() { private Background createBackgroundWithOpacity(Image image, int opacity) { if (opacity <= 0) { return new Background(new BackgroundFill(new Color(1, 1, 1, 0), CornerRadii.EMPTY, Insets.EMPTY)); - } else if (opacity >= 100) { + } else if (opacity >= 100 || image.getPixelReader() == null) { return new Background(new BackgroundImage( image, BackgroundRepeat.NO_REPEAT,