WIP - fix TR altcoin summary

Claim 2nd screen neeeds a fix now.
obrusvit 4 weeks ago
parent 925fa219ad
commit 2bb40cddaf

@ -2,6 +2,7 @@ use crate::{
strutil::TString,
ui::{
component::{Child, Component, ComponentExt, Event, EventCtx, Pad, Paginate},
constant::SCREEN,
geometry::Rect,
},
};
@ -96,7 +97,6 @@ where
self.current_page = self.pages.get(self.page_counter);
if let Some(title) = self.current_page.title() {
self.title = Some(Title::new(title));
self.title.place(self.title_area);
} else {
self.title = None;
}
@ -106,6 +106,7 @@ where
self.scrollbar.mutate(ctx, |_ctx, scrollbar| {
scrollbar.change_page(scrollbar_active_index);
});
self.place(SCREEN);
}
/// Placing current page, setting current buttons and clearing.

@ -735,6 +735,8 @@ extern "C" fn new_altcoin_tx_summary(n_args: usize, args: *const Obj, kwargs: *m
let btn_actions = ButtonActions::cancel_confirm_next();
let ops = OpTextLayout::new(theme::TEXT_MONO)
.text_bold(amount_title)
.newline()
.text_mono(amount_value)
.newline()
.newline_half()
@ -743,7 +745,7 @@ extern "C" fn new_altcoin_tx_summary(n_args: usize, args: *const Obj, kwargs: *m
.text_mono(fee_value);
let formatted = FormattedText::new(ops);
Page::new(btn_layout, btn_actions, formatted).with_title(amount_title)
Page::new(btn_layout, btn_actions, formatted)
}
1 => {
// Other information

Loading…
Cancel
Save