Keep a long alert title on one line, ending in an ellipsis (0.2.64)
The title label had long_mode: DOT and a width but no height. LVGL 9.5 only puts the dots on a label whose wrapped text is taller than the label, so the label grew with its lines and a long title ran into the subtitle. It now has one line of the headline font as its height (32 px Guition, 21 px CYD). The Claude skill and the editor's alert tips said the CYD shows about forty characters of a title; both screens show about twenty. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -18,7 +18,7 @@
|
||||
############################################################
|
||||
|
||||
substitutions:
|
||||
SCREEN_FIRMWARE_VERSION: "0.2.54"
|
||||
SCREEN_FIRMWARE_VERSION: "0.2.55"
|
||||
# A tap survives a finger that drifts up to this far (320 px over 58 mm: 1 cm); further is a swipe.
|
||||
TOUCH_MOVE_LIMIT_PX: "56"
|
||||
# Shortest contact that counts as a tap; a resistive panel bounces, a capacitive one does not.
|
||||
@@ -95,6 +95,7 @@ substitutions:
|
||||
ALERT_TEXT_X: "62"
|
||||
ALERT_TEXT_W: "212"
|
||||
ALERT_TITLE_Y: "16"
|
||||
ALERT_TITLE_H: "21" # one line of headline; a DOT label only ends in an ellipsis with a height
|
||||
ALERT_SUBTITLE_Y: "44"
|
||||
ALERT_SUBTITLE_H: "88"
|
||||
ALERT_BUTTON_W: "100"
|
||||
@@ -1610,6 +1611,7 @@ lvgl:
|
||||
x: ${ALERT_TEXT_X}
|
||||
y: ${ALERT_TITLE_Y}
|
||||
width: ${ALERT_TEXT_W}
|
||||
height: ${ALERT_TITLE_H}
|
||||
long_mode: DOT
|
||||
text: "Notification"
|
||||
text_font: headline
|
||||
|
||||
Reference in New Issue
Block a user