mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-09 18:38:47 +00:00
chore(eckhart): add action bar touch expansion function
This commit is contained in:
parent
0696c87cf2
commit
0078d15f48
@ -91,6 +91,13 @@ impl ActionBar {
|
|||||||
self
|
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) {
|
pub fn update(&mut self, new_pager: Pager) {
|
||||||
match &mut self.mode {
|
match &mut self.mode {
|
||||||
Mode::Double { pager } => {
|
Mode::Double { pager } => {
|
||||||
|
Loading…
Reference in New Issue
Block a user