Skip to content

Commit

Permalink
[fix] anti-aliasing is default ON in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
funa-tk committed Sep 21, 2020
1 parent 83619e4 commit b1565ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/core/packetproxy/gui/GUIMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ private GUIHistory getGUIHistory() throws Exception {
}

private void setLookandFeel() throws Exception {

if (PacketProxyUtility.getInstance().isUnix()) {
System.setProperty("awt.useSystemAAFontSettings", "on");
System.setProperty("swing.aatext", "true");
}

for (LookAndFeelInfo clInfo : UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(clInfo.getName())) {
UIManager.setLookAndFeel(clInfo.getClassName());
Expand Down

0 comments on commit b1565ab

Please sign in to comment.