From 05d1ae266326122496f01bd40dee2d139af5c040 Mon Sep 17 00:00:00 2001 From: Bane Stojkovic Date: Tue, 6 Oct 2026 12:09:47 +0200 Subject: [PATCH] icon --- .../main/java/org/diylc/components/displays/TFTDisplay.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/diylc/diylc-library/src/main/java/org/diylc/components/displays/TFTDisplay.java b/diylc/diylc-library/src/main/java/org/diylc/components/displays/TFTDisplay.java index dc9e2117..aade8c43 100644 --- a/diylc/diylc-library/src/main/java/org/diylc/components/displays/TFTDisplay.java +++ b/diylc/diylc-library/src/main/java/org/diylc/components/displays/TFTDisplay.java @@ -405,12 +405,14 @@ public class TFTDisplay extends AbstractMakerBoard { g2d.setColor(TFT_RED.darker()); g2d.draw(new RoundRectangle2D.Double(8, 1, width - 16, height - 2, 3, 3)); + // The glass reaches both edges of the board and is centred down it, as it is on the boards + // themselves -- every variant whose panel spans the board draws it from edge to edge. g2d.setColor(SCREEN_BG); - g2d.fillRect(10, 8, width - 20, height - 12); + g2d.fillRect(8, 6, width - 16, height - 12); g2d.setColor(Color.WHITE); g2d.setFont(new Font("SansSerif", Font.BOLD, 5)); - StringUtils.drawCenteredText(g2d, "TFT", width / 2, height / 2 + 3, HorizontalAlignment.CENTER, + StringUtils.drawCenteredText(g2d, "TFT", width / 2, height / 2, HorizontalAlignment.CENTER, VerticalAlignment.CENTER); }