1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 10:58:21 +00:00

fix(core): fix model_tr icons for new rendering

[no changelog]
This commit is contained in:
tychovrahe 2024-08-23 17:55:52 +02:00 committed by TychoVrahe
parent 954c7f422b
commit 1dc5c4c03f
8 changed files with 19 additions and 11 deletions

View File

@ -232,17 +232,6 @@ impl Homescreen {
rect_fill(AREA.split_top(NOTIFICATION_HEIGHT).0, theme::BG);
}
fn paint_warning_icons_in_top_corners(&self) {
let warning_icon = theme::ICON_WARNING;
warning_icon.draw(AREA.top_left(), Alignment2D::TOP_LEFT, theme::FG, theme::BG);
warning_icon.draw(
AREA.top_right(),
Alignment2D::TOP_RIGHT,
theme::FG,
theme::BG,
);
}
fn event_usb(&mut self, ctx: &mut EventCtx, event: Event) {
if let Event::USB(USBEvent::Connected(_)) = event {
ctx.request_paint();

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -71,49 +71,68 @@ include_icon!(ICON_ARROW_LEFT, "model_tr/res/arrow_left.toif"); // 4*7
include_icon!(ICON_ARROW_LEFT_BIG, "model_tr/res/arrow_left_big.toif"); // 8*7
include_icon!(ICON_ARROW_RIGHT, "model_tr/res/arrow_right.toif"); // 4*7
include_icon!(ICON_ARROW_RIGHT_FAT, "model_tr/res/arrow_right_fat.toif"); // 4*8
#[cfg(not(feature = "new_rendering"))]
include_icon!(
ICON_ARROW_UP,
"model_tr/res/arrow_up.toif",
empty_right_col = true
); // 8*4
#[cfg(feature = "new_rendering")]
include_icon!(ICON_ARROW_UP, "model_tr/res/arrow_up_o.toif"); // 8*4
#[cfg(not(feature = "new_rendering"))]
include_icon!(
ICON_ARROW_DOWN,
"model_tr/res/arrow_down.toif",
empty_right_col = true
); // 8*4
#[cfg(feature = "new_rendering")]
include_icon!(ICON_ARROW_DOWN, "model_tr/res/arrow_down_o.toif"); // 7*4
include_icon!(ICON_ARROW_BACK_UP, "model_tr/res/arrow_back_up.toif"); // 8*8
include_icon!(ICON_BIN, "model_tr/res/bin.toif"); // 10*10
#[cfg(not(feature = "new_rendering"))]
include_icon!(
ICON_CANCEL,
"model_tr/res/cancel.toif",
empty_right_col = true
); // 7*7
#[cfg(feature = "new_rendering")]
include_icon!(ICON_CANCEL, "model_tr/res/cancel_o.toif"); // 7*7
include_icon!(ICON_COINJOIN, "model_tr/res/coinjoin.toif"); // 12*12
#[cfg(not(feature = "new_rendering"))]
include_icon!(
ICON_DELETE,
"model_tr/res/delete.toif",
empty_right_col = true
); // 9*7
#[cfg(feature = "new_rendering")]
include_icon!(ICON_DELETE, "model_tr/res/delete_o.toif"); // 9*7
include_icon!(ICON_DEVICE_NAME, "model_tr/res/device_name.toif"); // 116*18
include_icon!(ICON_EYE, "model_tr/res/eye_round.toif"); // 12*7
include_icon!(ICON_LOCK, "model_tr/res/lock.toif"); // 10*10
include_icon!(ICON_LOCK_SMALL, "model_tr/res/lock_small.toif"); // 6*7
include_icon!(ICON_LOGO, "model_tr/res/logo_22_33.toif"); // 22*33
include_icon!(ICON_LOGO_EMPTY, "model_tr/res/logo_22_33_empty.toif");
#[cfg(not(feature = "new_rendering"))]
include_icon!(
ICON_NEXT_PAGE,
"model_tr/res/next_page.toif",
empty_right_col = true
); // 10*8
#[cfg(feature = "new_rendering")]
include_icon!(ICON_NEXT_PAGE, "model_tr/res/next_page_o.toif"); // 9*8
include_icon!(ICON_PREV_PAGE, "model_tr/res/prev_page.toif"); // 8*10
include_icon!(ICON_SPACE, "model_tr/res/space.toif"); // 12*3
include_icon!(ICON_TICK, "model_tr/res/tick.toif"); // 8*6
include_icon!(ICON_TICK_FAT, "model_tr/res/tick_fat.toif"); // 8*6
#[cfg(not(feature = "new_rendering"))]
include_icon!(
ICON_WARNING,
"model_tr/res/warning.toif",
empty_right_col = true
); // 12*12
#[cfg(feature = "new_rendering")]
include_icon!(ICON_WARNING, "model_tr/res/warning_o.toif"); // 11*12
include_icon!(ICON_WARN_TITLE, "model_tr/res/bld_header_warn.toif");
// checklist settings