mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-03 16:56:07 +00:00
feat(ui): Add function for expanding Button touch area
This commit is contained in:
parent
12dfee7370
commit
72cd04dc34
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user