diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/config/Config.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/config/Config.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/config/Config.java b/src/main/java/cuchaz/enigma/config/Config.java index 20605b7..e116fce 100644 --- a/src/main/java/cuchaz/enigma/config/Config.java +++ b/src/main/java/cuchaz/enigma/config/Config.java | |||
| @@ -7,7 +7,6 @@ import cuchaz.enigma.source.DecompilerService; | |||
| 7 | import cuchaz.enigma.source.Decompilers; | 7 | import cuchaz.enigma.source.Decompilers; |
| 8 | 8 | ||
| 9 | import cuchaz.enigma.utils.I18n; | 9 | import cuchaz.enigma.utils.I18n; |
| 10 | import cuchaz.enigma.gui.util.ScaleUtil; | ||
| 11 | 10 | ||
| 12 | import javax.swing.*; | 11 | import javax.swing.*; |
| 13 | import javax.swing.plaf.metal.MetalLookAndFeel; | 12 | import javax.swing.plaf.metal.MetalLookAndFeel; |
| @@ -79,7 +78,7 @@ public class Config { | |||
| 79 | public static boolean isDarkLaf() { | 78 | public static boolean isDarkLaf() { |
| 80 | // a bit of a hack because swing doesn't give any API for that, and we need colors that aren't defined in look and feel | 79 | // a bit of a hack because swing doesn't give any API for that, and we need colors that aren't defined in look and feel |
| 81 | JPanel panel = new JPanel(); | 80 | JPanel panel = new JPanel(); |
| 82 | panel.setSize(ScaleUtil.getDimension(10, 10)); | 81 | panel.setSize(new Dimension(10, 10)); |
| 83 | panel.doLayout(); | 82 | panel.doLayout(); |
| 84 | 83 | ||
| 85 | BufferedImage image = new BufferedImage(panel.getSize().width, panel.getSize().height, BufferedImage.TYPE_INT_RGB); | 84 | BufferedImage image = new BufferedImage(panel.getSize().width, panel.getSize().height, BufferedImage.TYPE_INT_RGB); |