@@ -9,6 +9,7 @@ pub struct NbglReview<'a> {
9
9
glyph : Option < & ' a NbglGlyph < ' a > > ,
10
10
tx_type : TransactionType ,
11
11
blind : bool ,
12
+ light : bool ,
12
13
}
13
14
14
15
impl SyncNBGL for NbglReview < ' _ > { }
@@ -22,6 +23,7 @@ impl<'a> NbglReview<'a> {
22
23
glyph : None ,
23
24
tx_type : TransactionType :: Transaction ,
24
25
blind : false ,
26
+ light : false ,
25
27
}
26
28
}
27
29
@@ -36,6 +38,13 @@ impl<'a> NbglReview<'a> {
36
38
}
37
39
}
38
40
41
+ pub fn light ( self ) -> NbglReview < ' a > {
42
+ NbglReview {
43
+ light : true ,
44
+ ..self
45
+ }
46
+ }
47
+
39
48
pub fn titles (
40
49
self ,
41
50
title : & ' a str ,
@@ -106,15 +115,27 @@ impl<'a> NbglReview<'a> {
106
115
) ;
107
116
}
108
117
false => {
109
- nbgl_useCaseReview (
110
- self . tx_type . to_c_type ( false ) ,
111
- & tag_value_list as * const nbgl_contentTagValueList_t ,
112
- & icon as * const nbgl_icon_details_t ,
113
- self . title . as_ptr ( ) as * const c_char ,
114
- self . subtitle . as_ptr ( ) as * const c_char ,
115
- self . finish_title . as_ptr ( ) as * const c_char ,
116
- Some ( choice_callback) ,
117
- ) ;
118
+ if self . light {
119
+ nbgl_useCaseReviewLight (
120
+ self . tx_type . to_c_type ( false ) ,
121
+ & tag_value_list as * const nbgl_contentTagValueList_t ,
122
+ & icon as * const nbgl_icon_details_t ,
123
+ self . title . as_ptr ( ) as * const c_char ,
124
+ self . subtitle . as_ptr ( ) as * const c_char ,
125
+ self . finish_title . as_ptr ( ) as * const c_char ,
126
+ Some ( choice_callback) ,
127
+ ) ;
128
+ } else {
129
+ nbgl_useCaseReview (
130
+ self . tx_type . to_c_type ( false ) ,
131
+ & tag_value_list as * const nbgl_contentTagValueList_t ,
132
+ & icon as * const nbgl_icon_details_t ,
133
+ self . title . as_ptr ( ) as * const c_char ,
134
+ self . subtitle . as_ptr ( ) as * const c_char ,
135
+ self . finish_title . as_ptr ( ) as * const c_char ,
136
+ Some ( choice_callback) ,
137
+ ) ;
138
+ }
118
139
}
119
140
}
120
141
let sync_ret = self . ux_sync_wait ( false ) ;
0 commit comments