Skip to content

Commit

Permalink
docs(label): update text for recoloring (lvgl#4606)
Browse files Browse the repository at this point in the history
  • Loading branch information
C47D authored Sep 27, 2023
1 parent 14e21d2 commit 87ff746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/widgets/core/label.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ This is not the case with `lv_label_set_text_static`. The buffer you pass to `lv

### Text recolor
In the text, you can use commands to recolor parts of the text. For example: `"Write a #ff0000 red# word"`.
This feature can be enabled individually for each label by `lv_label_set_recolor()` function.
This feature can be enabled individually for each label by `lv_label_set_recolor()` function,
recoloring is only supported when the text wrapped with `##ff0000 ... #`sintax is in one line,
it is not supported in wrapped text, see example `Line wrap, recoloring and scrolling`.

### Text selection
If enabled by `LV_LABEL_TEXT_SELECTION` part of the text can be selected. It's similar to when you use your mouse on a PC to select a text.
Expand Down

0 comments on commit 87ff746

Please sign in to comment.