feat(core): add icons for T3T1
BIN
core/embed/rust/src/ui/model_mercury/res/autofill30.png
Normal file
After Width: | Height: | Size: 542 B |
BIN
core/embed/rust/src/ui/model_mercury/res/autofill30.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/bullet_checkmark20.png
Normal file
After Width: | Height: | Size: 433 B |
BIN
core/embed/rust/src/ui/model_mercury/res/bullet_checkmark20.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/cancel24.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
core/embed/rust/src/ui/model_mercury/res/cancel24.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/chevron_right24.png
Normal file
After Width: | Height: | Size: 320 B |
BIN
core/embed/rust/src/ui/model_mercury/res/chevron_right24.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/close30.png
Normal file
After Width: | Height: | Size: 367 B |
BIN
core/embed/rust/src/ui/model_mercury/res/close30.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/delete30.png
Normal file
After Width: | Height: | Size: 484 B |
BIN
core/embed/rust/src/ui/model_mercury/res/delete30.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/download24.png
Normal file
After Width: | Height: | Size: 390 B |
BIN
core/embed/rust/src/ui/model_mercury/res/exclamation_mark24.png
Normal file
After Width: | Height: | Size: 502 B |
BIN
core/embed/rust/src/ui/model_mercury/res/exclamation_mark24.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/fire24.png
Normal file
After Width: | Height: | Size: 472 B |
BIN
core/embed/rust/src/ui/model_mercury/res/menu30.png
Normal file
After Width: | Height: | Size: 324 B |
BIN
core/embed/rust/src/ui/model_mercury/res/menu30.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/minus40.png
Normal file
After Width: | Height: | Size: 275 B |
BIN
core/embed/rust/src/ui/model_mercury/res/minus40.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/page_down20.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
core/embed/rust/src/ui/model_mercury/res/page_down20.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/page_up20.png
Normal file
After Width: | Height: | Size: 368 B |
BIN
core/embed/rust/src/ui/model_mercury/res/page_up20.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/plus40.png
Normal file
After Width: | Height: | Size: 333 B |
BIN
core/embed/rust/src/ui/model_mercury/res/plus40.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/qr_code24.png
Normal file
After Width: | Height: | Size: 476 B |
BIN
core/embed/rust/src/ui/model_mercury/res/qr_code24.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/reboot24.png
Normal file
After Width: | Height: | Size: 430 B |
BIN
core/embed/rust/src/ui/model_mercury/res/reboot24.toif
Normal file
BIN
core/embed/rust/src/ui/model_mercury/res/simple_checkmark30.png
Normal file
After Width: | Height: | Size: 397 B |
BIN
core/embed/rust/src/ui/model_mercury/res/simple_checkmark30.toif
Normal file
@ -47,6 +47,43 @@ pub const FATAL_ERROR_HIGHLIGHT_COLOR: Color = Color::rgb(0xFF, 0x41, 0x41);
|
|||||||
pub const RADIUS: u8 = 2;
|
pub const RADIUS: u8 = 2;
|
||||||
|
|
||||||
// UI icons (greyscale).
|
// UI icons (greyscale).
|
||||||
|
|
||||||
|
// 20x20
|
||||||
|
include_icon!(
|
||||||
|
ICON_BULLET_CHECKMARK,
|
||||||
|
"model_mercury/res/bullet_checkmark20.toif"
|
||||||
|
);
|
||||||
|
include_icon!(ICON_PAGE_DOWN, "model_mercury/res/page_down20.toif");
|
||||||
|
include_icon!(ICON_PAGE_UP, "model_mercury/res/page_up20.toif");
|
||||||
|
|
||||||
|
// 24x24
|
||||||
|
include_icon!(ICON_CANCEL, "model_mercury/res/cancel24.toif");
|
||||||
|
include_icon!(ICON_CHEVRON_RIGHT, "model_mercury/res/chevron_right24.toif");
|
||||||
|
include_icon!(ICON_DOWNLOAD, "model_mercury/res/download24.toif");
|
||||||
|
include_icon!(
|
||||||
|
ICON_EXCLAMATION_MARK,
|
||||||
|
"model_mercury/res/exclamation_mark24.toif"
|
||||||
|
);
|
||||||
|
include_icon!(ICON_FIRE, "model_mercury/res/fire24.toif");
|
||||||
|
include_icon!(ICON_QR_CODE, "model_mercury/res/qr_code24.toif");
|
||||||
|
include_icon!(ICON_REBOOT, "model_mercury/res/reboot24.toif");
|
||||||
|
|
||||||
|
// 30x30
|
||||||
|
include_icon!(ICON_AUTOFILL, "model_mercury/res/autofill30.toif");
|
||||||
|
include_icon!(ICON_CLOSE, "model_mercury/res/close30.toif");
|
||||||
|
include_icon!(ICON_DELETE, "model_mercury/res/delete30.toif");
|
||||||
|
include_icon!(ICON_MENU, "model_mercury/res/menu30.toif");
|
||||||
|
include_icon!(
|
||||||
|
ICON_SIMPLE_CHECKMARK,
|
||||||
|
"model_mercury/res/simple_checkmark30.toif"
|
||||||
|
);
|
||||||
|
|
||||||
|
// 40x40
|
||||||
|
include_icon!(ICON_MINUS, "model_mercury/res/minus40.toif");
|
||||||
|
include_icon!(ICON_PLUS, "model_mercury/res/plus40.toif");
|
||||||
|
|
||||||
|
// TODO remove TT icons:
|
||||||
|
|
||||||
// Button icons.
|
// Button icons.
|
||||||
include_icon!(ICON_CANCEL, "model_mercury/res/x24.toif");
|
include_icon!(ICON_CANCEL, "model_mercury/res/x24.toif");
|
||||||
include_icon!(ICON_CONFIRM, "model_mercury/res/check24.toif");
|
include_icon!(ICON_CONFIRM, "model_mercury/res/check24.toif");
|
||||||
|
@ -215,8 +215,8 @@ def from_image(
|
|||||||
image = image.convert("L")
|
image = image.convert("L")
|
||||||
|
|
||||||
if image.mode == "L":
|
if image.mode == "L":
|
||||||
if image.size[0] % 2 != 0:
|
# if image.size[0] % 2 != 0:
|
||||||
raise ValueError("Only even-width grayscale images are supported")
|
# raise ValueError("Only even-width grayscale images are supported")
|
||||||
if not legacy_format:
|
if not legacy_format:
|
||||||
toif_mode = ToifMode.grayscale_eh
|
toif_mode = ToifMode.grayscale_eh
|
||||||
toif_data = _from_pil_grayscale(image.getdata(), right_hi=True)
|
toif_data = _from_pil_grayscale(image.getdata(), right_hi=True)
|
||||||
|