Skip to content

Commit 8cb30cb

Browse files
committed
fixup! fixup! chore(core/eckhart): extend header buttons
1 parent c403485 commit 8cb30cb

File tree

1 file changed

+6
-4
lines changed
  • core/embed/rust/src/ui/layout_eckhart/firmware

1 file changed

+6
-4
lines changed

core/embed/rust/src/ui/layout_eckhart/firmware/header.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ impl Header {
6767
pub fn with_right_button(self, button: Button, msg: HeaderMsg) -> Self {
6868
debug_assert!(matches!(button.content(), ButtonContent::Icon(_)));
6969
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+
),
7175
right_button_msg: msg,
7276
..self
7377
}
@@ -91,9 +95,7 @@ impl Header {
9195
#[inline(never)]
9296
pub fn with_menu_button(self) -> Self {
9397
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()),
9799
HeaderMsg::Menu,
98100
)
99101
}

0 commit comments

Comments
 (0)