From 76ecfd791cc38918d78809675dbec46d7ea8ccd5 Mon Sep 17 00:00:00 2001 From: lizifan <695199262@qq.com> Date: Sat, 5 Jun 2021 22:23:49 +0800 Subject: [PATCH] [v3.0] HTTP UI DPI fix --- .../lzf/flyingsocks/client/gui/swt/HttpProxySettingModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/main/java/com/lzf/flyingsocks/client/gui/swt/HttpProxySettingModule.java b/client/src/main/java/com/lzf/flyingsocks/client/gui/swt/HttpProxySettingModule.java index 0a1a000..abf2338 100644 --- a/client/src/main/java/com/lzf/flyingsocks/client/gui/swt/HttpProxySettingModule.java +++ b/client/src/main/java/com/lzf/flyingsocks/client/gui/swt/HttpProxySettingModule.java @@ -40,6 +40,7 @@ import java.util.Objects; import java.util.function.Consumer; +import static com.lzf.flyingsocks.client.gui.swt.Utils.adaptDPI; import static com.lzf.flyingsocks.client.gui.swt.Utils.addButtonSelectionListener; import static com.lzf.flyingsocks.client.gui.swt.Utils.createButton; import static com.lzf.flyingsocks.client.gui.swt.Utils.createLabel; @@ -75,6 +76,7 @@ public class HttpProxySettingModule extends AbstractModule { this.shell = createShell(component.getDisplay(), "swtui.http.title", icon, 600, 280); initial(); + adaptDPI(shell); } private void initial() {