style(core): fix formatting

[no changelog]
obrusvit/ui-t3t1-reset-device-apple-hotfix
Martin Milata 2 months ago committed by obrusvit
parent 1894fcd080
commit 37b17e4c4e

@ -598,7 +598,7 @@ where
}
}
pub fn render<'s>(
& self,
&self,
target: &mut impl Renderer<'s>,
area: Rect,
style: &ButtonStyle,

@ -75,7 +75,6 @@ where
// let current_account = get_account(scrollbar.active_page);
let current_account = "".into();
Self {
app_name: Label::centered(app_name, theme::TEXT_DEMIBOLD),
account_name: Label::centered(current_account, theme::TEXT_DEMIBOLD),
@ -162,7 +161,8 @@ where
// NOTE: This is a hotfix used due to the erroneous behavior of TextLayout.
// This line should be removed when the problem with TextLayout is fixed.
// See also the code for FidoConfirm::new().
self.account_name.set_text((self.get_account)(self.scrollbar.active_page));
self.account_name
.set_text((self.get_account)(self.scrollbar.active_page));
bounds
}

@ -1336,10 +1336,7 @@ extern "C" fn new_show_tx_context_menu(n_args: usize, args: *const Obj, kwargs:
let options: [(StrBuffer, Icon); 3] = [
(StrBuffer::from("Address QR code"), theme::ICON_QR_CODE),
(
StrBuffer::from("Fee info"),
theme::ICON_CHEVRON_RIGHT,
),
(StrBuffer::from("Fee info"), theme::ICON_CHEVRON_RIGHT),
(StrBuffer::from("Cancel transaction"), theme::ICON_CANCEL),
];
let content = VerticalMenu::context_menu(options);

@ -7,12 +7,12 @@ mod blur;
mod cache;
mod canvas;
mod circle;
mod corner_highlight;
mod display;
#[cfg(feature = "ui_jpeg_decoder")]
mod jpeg;
mod qrcode;
mod render;
mod corner_highlight;
mod text;
mod toif;
@ -25,12 +25,11 @@ pub use blur::Blurring;
pub use cache::drawing_cache::DrawingCache;
pub use canvas::{BasicCanvas, Canvas, Mono8Canvas, Rgb565Canvas, Rgba8888Canvas, Viewport};
pub use circle::Circle;
pub use corner_highlight::CornerHighlight;
pub use display::render_on_display;
#[cfg(feature = "ui_jpeg_decoder")]
pub use jpeg::JpegImage;
pub use qrcode::QrImage;
pub use render::{DirectRenderer, ProgressiveRenderer, Renderer};
pub use corner_highlight::CornerHighlight;
pub use text::Text;
pub use toif::ToifImage;

@ -950,7 +950,7 @@ class InputFlowLockTimeDatetime(InputFlowBase):
def assert_func(self, debug: DebugLink, br: messages.ButtonRequest) -> None:
layout_text = get_text_possible_pagination(debug, br)
TR.assert_in(layout_text, "bitcoin__locktime_set_to")
assert self.lock_time_str.replace(' ', '') in layout_text.replace(' ', '')
assert self.lock_time_str.replace(" ", "") in layout_text.replace(" ", "")
def input_flow_tt(self) -> BRGeneratorType:
yield from lock_time_input_flow_tt(self.debug, self.assert_func)

Loading…
Cancel
Save