File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ public class EditorHeader extends JComponent {
73
73
74
74
static final int PIECE_WIDTH = scale (4 );
75
75
static final int PIECE_HEIGHT = scale (33 );
76
+ static final int TAB_HEIGHT = scale (27 );
76
77
77
78
// value for the size bars, buttons, etc
78
79
// TODO: Should be a Theme value?
@@ -270,8 +271,8 @@ public void paintComponent(Graphics screen) {
270
271
int textLeft = contentLeft + (pieceWidth - textWidth ) / 2 ;
271
272
272
273
g .setColor (textColor [state ]);
273
- int baseline = ( sizeH + fontAscent ) / 2 ;
274
- //g.drawString(sketch.code[i].name, textLeft, baseline);
274
+ int tabMarginTop = sizeH - TAB_HEIGHT ;
275
+ int baseline = tabMarginTop + (( TAB_HEIGHT + fontAscent ) / 2 ) ;
275
276
g .drawString (text , textLeft , baseline );
276
277
277
278
g .drawImage (pieces [state ][RIGHT ], x , 0 , null );
You can’t perform that action at this time.
0 commit comments