From 895ad5af1be11a4c7e9e3c62b9f2c2ddc50755c5 Mon Sep 17 00:00:00 2001 From: Erik Corry Date: Sun, 31 Dec 2023 15:18:01 +0100 Subject: [PATCH] feedback --- src/element.toit | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/element.toit b/src/element.toit index 835692d..74d4b2a 100644 --- a/src/element.toit +++ b/src/element.toit @@ -4,10 +4,6 @@ import binary show LITTLE-ENDIAN import bitmap show * -import .four-gray as four-gray -import .true-color as true-color -import .gray-scale as gray-scale -import .one-byte_ as one-byte import .style show * import .pixel-display import font show Font @@ -346,9 +342,7 @@ class Label extends Element implements ColoredElement: orientation = value else if key == "alignment": alignment = value - else if key == "label": - text = value - else if key == "text": + else if key == "text" or key == "label": text = value else if key == "icon": icon = value