diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-06-20 18:04:05 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-06-20 18:04:05 -0400 |
| commit | d295037c9f476cbecae55bed07187e64f1a80880 (patch) | |
| tree | 6bedb0cc8aaba9ce8b757c67df923e80915093ed /src | |
| parent | 0f016f7a470806de207e4a5e0d8b1c43bf6c90e3 (diff) | |
hard cap on input lengthHEADv1.0.1+26.2main
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/net/inyourwalls/customlevelcolour/ConfigScreen.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/inyourwalls/customlevelcolour/ConfigScreen.java b/src/main/java/net/inyourwalls/customlevelcolour/ConfigScreen.java index 8b137b8..de06150 100644 --- a/src/main/java/net/inyourwalls/customlevelcolour/ConfigScreen.java +++ b/src/main/java/net/inyourwalls/customlevelcolour/ConfigScreen.java @@ -49,6 +49,7 @@ public class ConfigScreen extends Screen { EditBox textColourInput = new EditBox(this.font, TEXT_COLOUR_LABEL); textColourInput.setValue(String.format("%x", this.previewTextColour)); + textColourInput.setMaxLength(6); textColourInput.setResponder(v -> { try { this.previewTextColour = Integer.parseInt(v, 16); @@ -63,6 +64,7 @@ public class ConfigScreen extends Screen { EditBox outlineColourInput = new EditBox(this.font, OUTLINE_COLOUR_LABEL); outlineColourInput.setValue(String.format("%x", this.previewOutlineColour)); + outlineColourInput.setMaxLength(6); outlineColourInput.setResponder(v -> { try { this.previewOutlineColour = Integer.parseInt(v, 16); |
