Improved UI design

This commit is contained in:
RaphiMC 2023-04-09 18:22:42 +02:00
parent a18cf6fe80
commit 0e8d7e6f58

View File

@ -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();
}