mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-05 13:26:57 +00:00
refactor(core): render full/empty logo same way as in TR
This commit is contained in:
parent
5947f8a50d
commit
ae7a1c7d52
@ -40,21 +40,17 @@ impl Component for WelcomeScreen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn paint(&mut self) {
|
fn paint(&mut self) {
|
||||||
if self.empty_lock {
|
let logo = if self.empty_lock {
|
||||||
theme::ICON_LOGO_EMPTY.draw(
|
theme::ICON_LOGO_EMPTY
|
||||||
self.area.top_center() + Offset::y(ICON_TOP_MARGIN),
|
|
||||||
Alignment2D::TOP_CENTER,
|
|
||||||
theme::FG,
|
|
||||||
theme::BG,
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
theme::ICON_LOGO.draw(
|
theme::ICON_LOGO
|
||||||
|
};
|
||||||
|
logo.draw(
|
||||||
self.area.top_center() + Offset::y(ICON_TOP_MARGIN),
|
self.area.top_center() + Offset::y(ICON_TOP_MARGIN),
|
||||||
Alignment2D::TOP_CENTER,
|
Alignment2D::TOP_CENTER,
|
||||||
theme::FG,
|
theme::FG,
|
||||||
theme::BG,
|
theme::BG,
|
||||||
);
|
);
|
||||||
}
|
|
||||||
#[cfg(not(feature = "bootloader"))]
|
#[cfg(not(feature = "bootloader"))]
|
||||||
display::text_center(
|
display::text_center(
|
||||||
self.area.bottom_center() - Offset::y(TEXT_BOTTOM_MARGIN),
|
self.area.bottom_center() - Offset::y(TEXT_BOTTOM_MARGIN),
|
||||||
|
Loading…
Reference in New Issue
Block a user