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::{ use crate::ui::{
display::{toif::Toif, LOADER_MAX}, display::{toif::Toif, LOADER_MAX},
geometry::{Alignment, Alignment2D}, geometry::{Alignment, Alignment2D},
model_mercury::shapes::{render_loader, LoaderRange}, model_mercury::cshape::{render_loader, LoaderRange},
shape, shape,
shape::render_on_display, shape::render_on_display,
}; };

View File

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

View File

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

View File

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

View File

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