diff --git a/core/embed/rust/src/ui/layout_eckhart/component/button.rs b/core/embed/rust/src/ui/layout_eckhart/component/button.rs index c0feb4c0d1..60e778e1b5 100644 --- a/core/embed/rust/src/ui/layout_eckhart/component/button.rs +++ b/core/embed/rust/src/ui/layout_eckhart/component/button.rs @@ -171,6 +171,10 @@ impl Button { self.touch_expand = Some(expand); } + pub fn set_content_offset(&mut self, offset: Offset) { + self.content_offset = offset; + } + pub fn content(&self) -> &ButtonContent { &self.content } diff --git a/core/embed/rust/src/ui/layout_eckhart/firmware/action_bar.rs b/core/embed/rust/src/ui/layout_eckhart/firmware/action_bar.rs index 7cdd78ffe2..56bbaf6355 100644 --- a/core/embed/rust/src/ui/layout_eckhart/firmware/action_bar.rs +++ b/core/embed/rust/src/ui/layout_eckhart/firmware/action_bar.rs @@ -9,7 +9,7 @@ use crate::{ }; use super::{ - super::component::{Button, ButtonContent, ButtonMsg, ButtonStyleSheet}, + super::component::{Button, ButtonMsg}, theme, HoldToConfirmAnim, }; @@ -17,20 +17,22 @@ use super::{ pub struct ActionBar { /// Behavior based on `Mode` mode: Mode, - /// Right or single button, can have text or icon - right_button: Button, - /// Optional left button, can be shorter than the right one + /// Right or single confirm button, can have text or icon + right_button: Option