From a9ef1284a6509a9289dddd66fb6091ad12a7294f Mon Sep 17 00:00:00 2001 From: obrusvit Date: Mon, 10 Mar 2025 17:58:21 +0100 Subject: [PATCH] chore(eckhart): delete old bootloader components --- .../ui/layout_eckhart/bootloader/confirm.rs | 246 ------------------ .../src/ui/layout_eckhart/bootloader/intro.rs | 113 -------- .../src/ui/layout_eckhart/bootloader/menu.rs | 111 -------- .../src/ui/layout_eckhart/component/mod.rs | 2 - .../src/ui/layout_eckhart/component/result.rs | 188 ------------- 5 files changed, 660 deletions(-) delete mode 100644 core/embed/rust/src/ui/layout_eckhart/bootloader/confirm.rs delete mode 100644 core/embed/rust/src/ui/layout_eckhart/bootloader/intro.rs delete mode 100644 core/embed/rust/src/ui/layout_eckhart/bootloader/menu.rs delete mode 100644 core/embed/rust/src/ui/layout_eckhart/component/result.rs diff --git a/core/embed/rust/src/ui/layout_eckhart/bootloader/confirm.rs b/core/embed/rust/src/ui/layout_eckhart/bootloader/confirm.rs deleted file mode 100644 index 67885c5323..0000000000 --- a/core/embed/rust/src/ui/layout_eckhart/bootloader/confirm.rs +++ /dev/null @@ -1,246 +0,0 @@ -use crate::{ - strutil::TString, - ui::{ - component::{Child, Component, ComponentExt, Event, EventCtx, Label, Pad}, - constant, - constant::screen, - display::{Color, Icon}, - geometry::{Alignment2D, Insets, Offset, Point, Rect}, - shape, - shape::Renderer, - }, -}; - -use super::super::{ - component::{Button, ButtonMsg::Clicked, ButtonStyleSheet}, - constant::WIDTH, - theme::{ - bootloader::{ - text_fingerprint, text_title, BUTTON_AREA_START, BUTTON_HEIGHT, CONTENT_PADDING, - CORNER_BUTTON_AREA, CORNER_BUTTON_TOUCH_EXPANSION, INFO32, TITLE_AREA, X32, - }, - WHITE, - }, -}; - -const ICON_TOP: i16 = 17; -const CONTENT_START: i16 = 72; - -const CONTENT_AREA: Rect = Rect::new( - Point::new(CONTENT_PADDING, CONTENT_START), - Point::new(WIDTH - CONTENT_PADDING, BUTTON_AREA_START - CONTENT_PADDING), -); - -#[derive(Copy, Clone, ToPrimitive)] -pub enum ConfirmMsg { - Cancel = 1, - Confirm = 2, -} - -pub enum ConfirmTitle { - Text(Label<'static>), - Icon(Icon), -} - -pub struct ConfirmInfo<'a> { - pub title: Child>, - pub text: Child>, - pub info_button: Child