Skip to content

Commit 5d0470e

Browse files
committed
EditorToolbar layout fixed
1 parent a63501b commit 5d0470e

File tree

13 files changed

+99
-203
lines changed

13 files changed

+99
-203
lines changed

app/src/processing/app/EditorToolbar.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ public void paintComponent(Graphics screen) {
262262
modeY1 = (getHeight() - modeBoxHeight) / 2;
263263
modeY2 = modeY1 + modeBoxHeight; //modeY1 + modeH + modeGapV*2;
264264
g.setColor(modeButtonColor);
265-
g.drawRect(modeX1, modeY1, modeX2 - modeX1, modeY2 - modeY1);
265+
g.drawRect(modeX1, modeY1, modeX2 - modeX1, modeY2 - modeY1 - 1);
266+
266267
g.drawString(modeTitle,
267268
modeX1 + modeGapWidth,
268269
modeY1 + (modeBoxHeight + modeTextAscent) / 2);
@@ -272,6 +273,10 @@ public void paintComponent(Graphics screen) {
272273
modeY1 + (modeBoxHeight - ARROW_HEIGHT) / 2,
273274
ARROW_WIDTH, ARROW_HEIGHT, null);
274275

276+
// g.drawLine(modeX1, modeY2, modeX2, modeY2);
277+
// g.drawLine(0, size.height, size.width, size.height);
278+
// g.fillRect(modeX1 - modeGapWidth*2, modeY1, modeGapWidth, modeBoxHeight);
279+
275280
screen.drawImage(offscreen, 0, 0, size.width, size.height, null);
276281

277282
// dim things out when not enabled (not currently in use)
-41.5 KB
Binary file not shown.
-40.1 KB
Binary file not shown.
-114 KB
Binary file not shown.

build/shared/lib/fonts/LICENSE.txt

100755100644
Lines changed: 93 additions & 202 deletions
Large diffs are not rendered by default.
-87.9 KB
Binary file not shown.
-87.9 KB
Binary file not shown.
-124 KB
Binary file not shown.
-124 KB
Binary file not shown.

experimental/theme/buttons-2x.png

1.8 KB
Loading

0 commit comments

Comments
 (0)