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

feat(core): adjust bootloader screens to look better on rectangular screens

[no changelog]
This commit is contained in:
tychovrahe 2023-04-20 10:45:15 +02:00 committed by TychoVrahe
parent 32a2b371bd
commit cfb674cf01
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ use crate::{
trezorhal::io::io_touch_read,
ui::{
component::{Component, Event, EventCtx, Label, Never},
constant::screen,
constant::{screen, HEIGHT},
display::{self, Color, Font, Icon},
event::TouchEvent,
geometry::{Alignment, Point, TOP_CENTER},
@ -270,7 +270,7 @@ fn screen_progress(
}
display::text_center(
Point::new(constant::WIDTH / 2, 195),
Point::new(constant::WIDTH / 2, HEIGHT - 45),
text,
Font::NORMAL,
fg_color,

View File

@ -1,6 +1,6 @@
use crate::ui::{
component::{text::TextStyle, LineBreaking::BreakWordsNoHyphen},
constant::WIDTH,
constant::{HEIGHT, WIDTH},
display::{Color, Font},
geometry::{Offset, Point, Rect},
model_tt::{
@ -49,7 +49,7 @@ pub const CORNER_BUTTON_AREA: Rect = Rect::from_top_left_and_size(
),
Offset::uniform(CORNER_BUTTON_SIZE),
);
pub const BUTTON_AREA_START: i16 = 184;
pub const BUTTON_AREA_START: i16 = HEIGHT - 56;
pub const BUTTON_HEIGHT: i16 = 50;
// BLD icons