chore(lv_label): remove codes for recolor feature (#4766)

This commit is contained in:
Benign X
2023-11-08 23:25:54 +08:00
committed by GitHub
parent fa17aae81c
commit a5f6e2761f
9 changed files with 7 additions and 74 deletions

View File

@@ -8,9 +8,7 @@ import display_driver
#
label1 = lv.label(lv.screen_active())
label1.set_long_mode(lv.label.LONG.WRAP) # Break the long lines*/
label1.set_recolor(True) # Enable re-coloring by commands in the text
label1.set_text("#0000ff Re-color# #ff00ff words# #ff0000 of a# label, align the lines to the center "
"and wrap long text automatically.")
label1.set_text("Recolor is not supported for v9 now.")
label1.set_width(150) # Set smaller width to make the lines wrap
label1.set_style_text_align(lv.TEXT_ALIGN.CENTER, 0)
label1.align(lv.ALIGN.CENTER, 0, -40)