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:
parent
32a2b371bd
commit
cfb674cf01
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user