@@ -290,12 +290,10 @@ typedef struct {
290290typedef enum {
291291 ROUNDED_AND_FOOTER_STYLE = 0 , ///< A black background button on top of a footer
292292 STRONG_ACTION_AND_FOOTER_STYLE , ///< A black button on top of a footer, with a separation line
293- SOFT_ACTION_AND_FOOTER_STYLE ///< A white button on top of a footer, with a separation line
293+ SOFT_ACTION_AND_FOOTER_STYLE , ///< A white button on top of a footer, with a separation line
294+ BOTH_ROUNDED_STYLE ///< A black button on top of a white button
294295} nbgl_layoutChoiceButtonsStyle_t ;
295296
296- // for backward compatibility
297- #define BOTH_ROUNDED_STYLE SOFT_ACTION_AND_FOOTER_STYLE
298-
299297/**
300298 * @brief This structure contains info to build a pair of buttons, one on top of the other.
301299 *
@@ -416,10 +414,11 @@ typedef struct {
416414typedef enum {
417415 HEADER_EMPTY = 0 , ///< empty space, to have a better vertical centering of centered info
418416 HEADER_BACK_AND_TEXT , ///< back key and optional text
419- HEADER_BACK_AND_PROGRESS , ///< optional back key and progress indicator (only on Stax)
420- HEADER_TITLE , ///< simple centered text
421- HEADER_EXTENDED_BACK , ///< back key, centered text and touchable key on the right
422- HEADER_RIGHT_TEXT , ///< touchable text on the right, with a vertical separation line
417+ HEADER_BACK_ICON_AND_TEXT , ///< back key and optional icon and text
418+ HEADER_BACK_AND_PROGRESS , ///< optional back key and progress indicator (only on Stax)
419+ HEADER_TITLE , ///< simple centered text
420+ HEADER_EXTENDED_BACK , ///< back key, centered text and touchable key on the right
421+ HEADER_RIGHT_TEXT , ///< touchable text on the right, with a vertical separation line
423422 NB_HEADER_TYPES
424423} nbgl_layoutHeaderType_t ;
425424
@@ -435,10 +434,12 @@ typedef struct {
435434 uint16_t height ;
436435 } emptySpace ; ///< if type is @ref HEADER_EMPTY
437436 struct {
437+ const nbgl_icon_details_t
438+ * icon ; ///< icon on left of text (only if @ref HEADER_BACK_ICON_AND_TEXT)
438439 const char * text ; ///< can be NULL if no text
439440 uint8_t token ; ///< when back key is pressed
440441 tune_index_e tuneId ; ///< when back key is pressed
441- } backAndText ; ///< if type is @ref HEADER_BACK_AND_TEXT
442+ } backAndText ; ///< if type is @ref HEADER_BACK_ICON_AND_TEXT or @ref HEADER_BACK_AND_TEXT
442443 struct {
443444 const nbgl_icon_details_t * actionIcon ; ///< right button icon
444445 uint8_t activePage ;
@@ -654,7 +655,7 @@ int nbgl_layoutAddProgressIndicator(nbgl_layout_t *layout,
654655 bool withBack ,
655656 uint8_t backToken ,
656657 tune_index_e tuneId );
657- int nbgl_layoutAddSpinner (nbgl_layout_t * layout , const char * text , bool fixed );
658+ int nbgl_layoutAddSpinner (nbgl_layout_t * layout , const char * text , const char * subText , bool fixed );
658659int nbgl_layoutAddSwipe (nbgl_layout_t * layout ,
659660 uint16_t swipesMask ,
660661 const char * text ,
@@ -729,6 +730,7 @@ int nbgl_layoutUpdateKeypad(nbgl_layout_t *layout,
729730 bool enableValidate ,
730731 bool enableBackspace ,
731732 bool enableDigits );
733+ int nbgl_layoutUpdateKeypadValidation (nbgl_layout_t * layout , bool softValidation );
732734DEPRECATED int nbgl_layoutAddHiddenDigits (nbgl_layout_t * layout , uint8_t nbDigits );
733735DEPRECATED int nbgl_layoutUpdateHiddenDigits (nbgl_layout_t * layout ,
734736 uint8_t index ,
0 commit comments