mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-12 06:06:07 +00:00
chore(eckhart): add action bar touch expansion function
This commit is contained in:
parent
2a41a6549f
commit
912a9acfbe
@ -91,6 +91,13 @@ impl ActionBar {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_touch_expansion(&mut self, expand: Insets) {
|
||||
if let Some(btn) = &mut self.left_button {
|
||||
btn.set_expanded_touch_area(expand);
|
||||
}
|
||||
self.right_button.set_expanded_touch_area(expand);
|
||||
}
|
||||
|
||||
pub fn update(&mut self, new_pager: Pager) {
|
||||
match &mut self.mode {
|
||||
Mode::Double { pager } => {
|
||||
|
Loading…
Reference in New Issue
Block a user