File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
core/embed/rust/src/ui/layout_eckhart/firmware Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,11 @@ impl Header {
67
67
pub fn with_right_button ( self , button : Button , msg : HeaderMsg ) -> Self {
68
68
debug_assert ! ( matches!( button. content( ) , ButtonContent :: Icon ( _) ) ) ;
69
69
Self {
70
- right_button : Some ( button. with_expanded_touch_area ( Self :: BUTTON_TOUCH_EXPAND ) ) ,
70
+ right_button : Some (
71
+ button
72
+ . with_expanded_touch_area ( Self :: BUTTON_TOUCH_EXPAND )
73
+ . with_radius ( 12 ) ,
74
+ ) ,
71
75
right_button_msg : msg,
72
76
..self
73
77
}
@@ -91,9 +95,7 @@ impl Header {
91
95
#[ inline( never) ]
92
96
pub fn with_menu_button ( self ) -> Self {
93
97
self . with_right_button (
94
- Button :: with_icon ( theme:: ICON_MENU )
95
- . styled ( theme:: button_header ( ) )
96
- . with_radius ( 12 ) ,
98
+ Button :: with_icon ( theme:: ICON_MENU ) . styled ( theme:: button_header ( ) ) ,
97
99
HeaderMsg :: Menu ,
98
100
)
99
101
}
You can’t perform that action at this time.
0 commit comments