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,
|
trezorhal::io::io_touch_read,
|
||||||
ui::{
|
ui::{
|
||||||
component::{Component, Event, EventCtx, Label, Never},
|
component::{Component, Event, EventCtx, Label, Never},
|
||||||
constant::screen,
|
constant::{screen, HEIGHT},
|
||||||
display::{self, Color, Font, Icon},
|
display::{self, Color, Font, Icon},
|
||||||
event::TouchEvent,
|
event::TouchEvent,
|
||||||
geometry::{Alignment, Point, TOP_CENTER},
|
geometry::{Alignment, Point, TOP_CENTER},
|
||||||
@ -270,7 +270,7 @@ fn screen_progress(
|
|||||||
}
|
}
|
||||||
|
|
||||||
display::text_center(
|
display::text_center(
|
||||||
Point::new(constant::WIDTH / 2, 195),
|
Point::new(constant::WIDTH / 2, HEIGHT - 45),
|
||||||
text,
|
text,
|
||||||
Font::NORMAL,
|
Font::NORMAL,
|
||||||
fg_color,
|
fg_color,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::ui::{
|
use crate::ui::{
|
||||||
component::{text::TextStyle, LineBreaking::BreakWordsNoHyphen},
|
component::{text::TextStyle, LineBreaking::BreakWordsNoHyphen},
|
||||||
constant::WIDTH,
|
constant::{HEIGHT, WIDTH},
|
||||||
display::{Color, Font},
|
display::{Color, Font},
|
||||||
geometry::{Offset, Point, Rect},
|
geometry::{Offset, Point, Rect},
|
||||||
model_tt::{
|
model_tt::{
|
||||||
@ -49,7 +49,7 @@ pub const CORNER_BUTTON_AREA: Rect = Rect::from_top_left_and_size(
|
|||||||
),
|
),
|
||||||
Offset::uniform(CORNER_BUTTON_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;
|
pub const BUTTON_HEIGHT: i16 = 50;
|
||||||
|
|
||||||
// BLD icons
|
// BLD icons
|
||||||
|
Loading…
Reference in New Issue
Block a user