mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-02 08:50:26 +01:00
Improved UI design
This commit is contained in:
parent
a18cf6fe80
commit
0e8d7e6f58
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user