@@ -47,7 +47,7 @@ public class EditorLineStatus extends JComponent {
4747 Color messageForeground ;
4848
4949 Font font ;
50- int high ;
50+ int height ;
5151
5252 String text = "" ;
5353 String name = "" ;
@@ -57,7 +57,7 @@ public EditorLineStatus() {
5757 background = Theme .getColor ("linestatus.bgcolor" );
5858 font = Theme .getFont ("linestatus.font" );
5959 foreground = Theme .getColor ("linestatus.color" );
60- high = scale ( Theme .getInteger ("linestatus.height" ) );
60+ height = Theme .getInteger ("linestatus.height" );
6161
6262 if (OSUtils .isMacOS ()) {
6363 resize = Theme .getThemeImage ("resize" , this , RESIZE_IMAGE_SIZE , RESIZE_IMAGE_SIZE );
@@ -105,7 +105,7 @@ public void paintComponent(Graphics graphics) {
105105
106106 g .setFont (font );
107107 g .setColor (foreground );
108- int baseline = (high + g .getFontMetrics ().getAscent ()) / 2 ;
108+ int baseline = (size . height + g .getFontMetrics ().getAscent ()) / 2 ;
109109 g .drawString (text , scale (6 ), baseline );
110110
111111 g .setColor (messageForeground );
@@ -130,14 +130,14 @@ public void setSerialPort(String serialport) {
130130 }
131131
132132 public Dimension getPreferredSize () {
133- return new Dimension (300 , high );
133+ return scale ( new Dimension (300 , height ) );
134134 }
135135
136136 public Dimension getMinimumSize () {
137137 return getPreferredSize ();
138138 }
139139
140140 public Dimension getMaximumSize () {
141- return new Dimension (3000 , high );
141+ return scale ( new Dimension (3000 , height ) );
142142 }
143143}
0 commit comments