1
0
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:
Lukas Bielesch 2025-02-25 16:34:17 +01:00 committed by obrusvit
parent 2a41a6549f
commit 912a9acfbe

View File

@ -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 } => {