@@ -393,18 +393,14 @@ typedef char *(*onTextDrawCallback_t)(uint8_t token);
393
393
*
394
394
*/
395
395
typedef struct PACKED__ nbgl_button_s {
396
- nbgl_obj_t obj ; ///< common part
397
- color_t innerColor ; ///< color set inside of the button
398
- color_t borderColor ; ///< color set to button's border
399
- color_t foregroundColor ; ///< color set to '1' bits in icon, and text. '0' are set to
400
- ///< innerColor color.
401
- nbgl_radius_t radius ; ///< radius of the corners, must be a multiple of 4.
402
- nbgl_font_id_e fontId ; ///< id of the font to use, if any
403
- bool localized ; ///< if set to true, means the following 'text' field is considered as a
404
- const char * text ; ///< single line UTF-8 text (NULL terminated)
405
- #ifdef HAVE_LANGUAGE_PACK
406
- UX_LOC_STRINGS_INDEX textId ; ///< id of the text single line UTF-8 text
407
- #endif // HAVE_LANGUAGE_PACK
396
+ nbgl_obj_t obj ; ///< common part
397
+ color_t innerColor ; ///< color set inside of the button
398
+ color_t borderColor ; ///< color set to button's border
399
+ color_t foregroundColor ; ///< color set to '1' bits in icon, and text. '0' are set to
400
+ ///< innerColor color.
401
+ nbgl_radius_t radius ; ///< radius of the corners, must be a multiple of 4.
402
+ nbgl_font_id_e fontId ; ///< id of the font to use, if any
403
+ const char * text ; ///< single line UTF-8 text (NULL terminated)
408
404
onTextDrawCallback_t onDrawCallback ; ///< function called if not NULL, with above token as
409
405
///< parameter to get the text of the button
410
406
uint8_t token ; ///< token to use as param of onDrawCallback
@@ -421,17 +417,13 @@ typedef struct PACKED__ nbgl_text_area_s {
421
417
nbgl_aligment_t textAlignment ; ///< alignment of text within the area
422
418
nbgl_style_t style ; ///< to define the style of border
423
419
nbgl_font_id_e fontId ; ///< id of the font to use
424
- bool localized ; ///< if set to true, use textId instead of text
425
420
bool autoHideLongLine ; ///< if set to true, replace beginning of line by ... to keep it single
426
421
///< line
427
422
bool wrapping ; ///< if set to true, break lines on ' ' when possible
428
423
uint8_t nbMaxLines ; ///< if >0, replace end (3 last chars) of line (nbMaxLines-1) by "..." and
429
424
///< stop display here
430
425
const char * text ; ///< ASCII text to draw (NULL terminated). Can be NULL.
431
426
uint16_t len ; ///< number of bytes to write (if 0, max number of chars or strlen is used)
432
- #ifdef HAVE_LANGUAGE_PACK
433
- UX_LOC_STRINGS_INDEX textId ; ///< id of the UTF-8 text
434
- #endif // HAVE_LANGUAGE_PACK
435
427
onTextDrawCallback_t
436
428
onDrawCallback ; ///< function called if not NULL to get the text of the text area
437
429
uint8_t token ; ///< token to use as param of onDrawCallback
0 commit comments