1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-06 06:42:33 +00:00
trezor-firmware/core/embed/rust/src/ui/model_tt/mod.rs
matejcik e53f47811f refactor(core): introduce Simplified trait
to abstract over some common operations between models

[no changelog]
2024-03-27 16:21:09 +01:00

28 lines
652 B
Rust

use super::{geometry::Rect, layout::simplified::SimplifiedFeatures};
#[cfg(feature = "bootloader")]
pub mod bootloader;
pub mod component;
pub mod constant;
pub mod theme;
#[cfg(feature = "micropython")]
pub mod layout;
pub mod screens;
pub struct ModelTTFeatures {}
impl SimplifiedFeatures for ModelTTFeatures {
fn fadein() {
#[cfg(feature = "backlight")]
crate::ui::display::fade_backlight_duration(theme::BACKLIGHT_NORMAL, 150);
}
fn fadeout() {
#[cfg(feature = "backlight")]
crate::ui::display::fade_backlight_duration(theme::BACKLIGHT_DIM, 150);
}
const SCREEN: Rect = constant::SCREEN;
}