mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-28 14:05:43 +00:00
chore(eckhart): update trace function for firmware components
This commit is contained in:
parent
f1f5356df9
commit
b28eba513b
core/embed/rust/src/ui/layout_eckhart/firmware
@ -105,6 +105,9 @@ impl Component for SelectWordScreen {
|
||||
impl crate::trace::Trace for SelectWordScreen {
|
||||
fn trace(&self, t: &mut dyn crate::trace::Tracer) {
|
||||
t.component("SelectWordScreen");
|
||||
t.child("Header", &self.header);
|
||||
t.child("subtitle", &self.description);
|
||||
t.child("Content", &self.menu);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -192,10 +192,10 @@ impl<'a> Component for ShareWordsScreen<'a> {
|
||||
impl<'a> crate::trace::Trace for ShareWordsScreen<'a> {
|
||||
fn trace(&self, t: &mut dyn crate::trace::Tracer) {
|
||||
t.component("TextComponent");
|
||||
self.header.trace(t);
|
||||
self.content.trace(t);
|
||||
self.hint.trace(t);
|
||||
self.action_bar.trace(t);
|
||||
t.child("Header", &self.header);
|
||||
t.child("Content", &self.content);
|
||||
t.child("Hint", &self.hint);
|
||||
t.child("ActionBar", &self.action_bar);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -161,14 +161,14 @@ where
|
||||
fn trace(&self, t: &mut dyn crate::trace::Tracer) {
|
||||
t.component("TextComponent");
|
||||
if let Some(header) = self.header.as_ref() {
|
||||
header.trace(t);
|
||||
t.child("Header", header);
|
||||
}
|
||||
self.content.trace(t);
|
||||
t.child("Content", &self.content);
|
||||
if let Some(hint) = self.hint.as_ref() {
|
||||
hint.trace(t);
|
||||
t.child("Hint", hint);
|
||||
}
|
||||
if let Some(ab) = self.action_bar.as_ref() {
|
||||
ab.trace(t);
|
||||
t.child("ActionBar", ab);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -187,5 +187,7 @@ impl Swipable for VerticalMenuScreen {
|
||||
impl crate::trace::Trace for VerticalMenuScreen {
|
||||
fn trace(&self, t: &mut dyn crate::trace::Tracer) {
|
||||
t.component("VerticalMenuScreen");
|
||||
t.child("Header", &self.header);
|
||||
t.child("Menu", &self.menu);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user