Fix scaling issues on some windows
This commit is contained in:
1 parent
3ee3a7e300
commit
fb097a0c49
5 files changed
+13
-10
No files matched your search
@@ -24,6 +24,7 @@
|
||||
|
||||
package com.loomcom.symon.ui;
|
||||
|
||||
import com.formdev.flatlaf.util.UIScale;
|
||||
import com.loomcom.symon.CpuState;
|
||||
import com.loomcom.symon.util.FifoRingBuffer;
|
||||
|
||||
@@ -39,8 +40,8 @@ public class TraceLog extends JFrame {
|
||||
private final FifoRingBuffer<CpuState> traceLog;
|
||||
private final JTextArea traceLogTextArea;
|
||||
|
||||
private static final Dimension MIN_SIZE = new Dimension(320, 200);
|
||||
private static final Dimension PREFERRED_SIZE = new Dimension(640, 480);
|
||||
private static final Dimension MIN_SIZE = UIScale.scale(new Dimension(320, 200));
|
||||
private static final Dimension PREFERRED_SIZE = UIScale.scale(new Dimension(640, 480));
|
||||
private static final int MAX_LOG_LENGTH = 50000;
|
||||
|
||||
public TraceLog() {
|
||||
@@ -53,7 +54,7 @@ public class TraceLog extends JFrame {
|
||||
setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
|
||||
|
||||
traceLogTextArea = new JTextArea();
|
||||
traceLogTextArea.setFont(new Font(Font.MONOSPACED, Font.BOLD, 12));
|
||||
traceLogTextArea.setFont(new Font(Font.MONOSPACED, Font.BOLD, UIScale.scale(12)));
|
||||
traceLogTextArea.setEditable(false);
|
||||
|
||||
JScrollPane scrollableView = new JScrollPane(traceLogTextArea);
|
||||
|
||||
Reference in new issue
Block a user