1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-28 23:32:05 +00:00

feat(ui): Add function for expanding Button touch area

This commit is contained in:
Lukas Bielesch 2025-01-29 14:18:03 +01:00 committed by obrusvit
parent 84dc09ffcc
commit 40ba04054f

View File

@ -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 { pub fn content(&self) -> &ButtonContent {
&self.content &self.content
} }