1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

refactor(core): move mercury loader to cshape module

[no changelog]
This commit is contained in:
tychovrahe 2024-05-29 14:27:02 +02:00 committed by TychoVrahe
parent 51c1ff728d
commit f793e6d509
6 changed files with 7 additions and 4 deletions

View File

@ -38,7 +38,7 @@ use super::theme::BLACK;
use crate::ui::{
display::{toif::Toif, LOADER_MAX},
geometry::{Alignment, Alignment2D},
model_mercury::shapes::{render_loader, LoaderRange},
model_mercury::cshape::{render_loader, LoaderRange},
shape,
shape::render_on_display,
};

View File

@ -7,7 +7,7 @@ use crate::{
component::{Component, Event, EventCtx, Pad},
display::{self, toif::Icon, Color, LOADER_MAX},
geometry::{Alignment2D, Offset, Rect},
model_mercury::shapes::{render_loader, LoaderRange},
model_mercury::cshape::{render_loader, LoaderRange},
shape::{self, Renderer},
util::animation_disabled,
},

View File

@ -13,7 +13,7 @@ use crate::{
geometry::{Insets, Offset, Rect},
model_mercury::{
constant,
shapes::{render_loader, LoaderRange},
cshape::{render_loader, LoaderRange},
},
shape::Renderer,
util::animation_disabled,

View File

@ -1,3 +1,7 @@
mod loader;
mod unlock_overlay;
pub use unlock_overlay::UnlockOverlay;
pub use loader::{render_loader, LoaderRange};

View File

@ -13,7 +13,6 @@ pub mod flow;
#[cfg(feature = "micropython")]
pub mod layout;
pub mod screens;
pub mod shapes;
pub struct ModelMercuryFeatures;