diff --git a/src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java b/src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java index 660cc66..678e852 100644 --- a/src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java +++ b/src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java @@ -60,11 +60,12 @@ public class ViaProxyUI extends JFrame { private void setLookAndFeel() { try { - UIManager.setLookAndFeel(new FlatDarkLaf()); + FlatDarkLaf.setup(); final Font font = Font.createFont(Font.TRUETYPE_FONT, this.getClass().getClassLoader().getResourceAsStream("assets/fonts/OpenSans-Regular.ttf")).deriveFont(Font.PLAIN, 12F); GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(font); UIManager.getLookAndFeelDefaults().put("defaultFont", font); + UIManager.getLookAndFeelDefaults().put("TextComponent.arc", 5); } catch (Throwable t) { t.printStackTrace(); }