From 40ba04054faaca3b1407710d889d1a089a535d0d Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Wed, 29 Jan 2025 14:18:03 +0100 Subject: [PATCH] feat(ui): Add function for expanding Button touch area --- core/embed/rust/src/ui/layout_eckhart/component/button.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/embed/rust/src/ui/layout_eckhart/component/button.rs b/core/embed/rust/src/ui/layout_eckhart/component/button.rs index 4fd60e5f09..318ff7e385 100644 --- a/core/embed/rust/src/ui/layout_eckhart/component/button.rs +++ b/core/embed/rust/src/ui/layout_eckhart/component/button.rs @@ -159,6 +159,10 @@ impl Button { } } + pub fn set_expanded_touch_area(&mut self, expand: Insets) { + self.touch_expand = Some(expand); + } + pub fn content(&self) -> &ButtonContent { &self.content }