[FL-2475] Text Box add three dots trim option (#1136)
* introduce text box debug application * text box: add strip to dots option * applications: update text box usage Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
7
applications/gui/modules/widget.c
Executable file → Normal file
7
applications/gui/modules/widget.c
Executable file → Normal file
@@ -154,10 +154,11 @@ void widget_add_text_box_element(
|
||||
uint8_t height,
|
||||
Align horizontal,
|
||||
Align vertical,
|
||||
const char* text) {
|
||||
const char* text,
|
||||
bool strip_to_dots) {
|
||||
furi_assert(widget);
|
||||
WidgetElement* text_box_element =
|
||||
widget_element_text_box_create(x, y, width, height, horizontal, vertical, text);
|
||||
WidgetElement* text_box_element = widget_element_text_box_create(
|
||||
x, y, width, height, horizontal, vertical, text, strip_to_dots);
|
||||
widget_add_element(widget, text_box_element);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user