@@ -47,7 +47,7 @@ public class EditorLineStatus extends JComponent {
47
47
Color messageForeground ;
48
48
49
49
Font font ;
50
- int high ;
50
+ int height ;
51
51
52
52
String text = "" ;
53
53
String name = "" ;
@@ -57,7 +57,7 @@ public EditorLineStatus() {
57
57
background = Theme .getColor ("linestatus.bgcolor" );
58
58
font = Theme .getFont ("linestatus.font" );
59
59
foreground = Theme .getColor ("linestatus.color" );
60
- high = scale ( Theme .getInteger ("linestatus.height" ) );
60
+ height = Theme .getInteger ("linestatus.height" );
61
61
62
62
if (OSUtils .isMacOS ()) {
63
63
resize = Theme .getThemeImage ("resize" , this , RESIZE_IMAGE_SIZE , RESIZE_IMAGE_SIZE );
@@ -105,7 +105,7 @@ public void paintComponent(Graphics graphics) {
105
105
106
106
g .setFont (font );
107
107
g .setColor (foreground );
108
- int baseline = (high + g .getFontMetrics ().getAscent ()) / 2 ;
108
+ int baseline = (size . height + g .getFontMetrics ().getAscent ()) / 2 ;
109
109
g .drawString (text , scale (6 ), baseline );
110
110
111
111
g .setColor (messageForeground );
@@ -130,14 +130,14 @@ public void setSerialPort(String serialport) {
130
130
}
131
131
132
132
public Dimension getPreferredSize () {
133
- return new Dimension (300 , high );
133
+ return scale ( new Dimension (300 , height ) );
134
134
}
135
135
136
136
public Dimension getMinimumSize () {
137
137
return getPreferredSize ();
138
138
}
139
139
140
140
public Dimension getMaximumSize () {
141
- return new Dimension (3000 , high );
141
+ return scale ( new Dimension (3000 , height ) );
142
142
}
143
143
}
0 commit comments