From 349b663c83409ca6a3809a69c7d9c908d84d0f93 Mon Sep 17 00:00:00 2001 From: Glavo Date: Fri, 28 Feb 2025 01:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E6=A0=87=E9=A2=98=E6=A0=8F?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E8=8E=B7=E5=8F=96=E7=84=A6=E7=82=B9=20(#3666?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java index 4a542eb77..ad0111036 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java @@ -187,16 +187,19 @@ public class DecoratorSkin extends SkinBase { buttonsContainer.setMaxHeight(40); { JFXButton btnHelp = new JFXButton(); + btnHelp.setFocusTraversable(false); btnHelp.setGraphic(SVG.HELP_CIRCLE_OUTLINE.createIcon(Theme.foregroundFillBinding(), -1, -1)); btnHelp.getStyleClass().add("jfx-decorator-button"); btnHelp.setOnAction(e -> FXUtils.openLink("https://docs.hmcl.net/help.html")); JFXButton btnMin = new JFXButton(); + btnMin.setFocusTraversable(false); btnMin.setGraphic(SVG.MINUS.createIcon(Theme.foregroundFillBinding(), -1, -1)); btnMin.getStyleClass().add("jfx-decorator-button"); btnMin.setOnAction(e -> skinnable.minimize()); JFXButton btnClose = new JFXButton(); + btnClose.setFocusTraversable(false); btnClose.setGraphic(SVG.CLOSE.createIcon(Theme.foregroundFillBinding(), -1, -1)); btnClose.getStyleClass().add("jfx-decorator-button"); btnClose.setOnAction(e -> skinnable.close());