1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-28 15:22:14 +00:00

feat(eckhart): icon set

This commit is contained in:
obrusvit 2024-12-23 14:45:25 +01:00
parent 821a9f04d1
commit 70790a156d
40 changed files with 48 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

View File

@ -0,0 +1,14 @@
import os
import subprocess
# List all files in the current directory
for file in os.listdir('.'):
if file.endswith('.png'):
# Apply the mogrify command
subprocess.run(['mogrify', '-colorspace', 'gray', file], check=True)
# Apply the toiftool command
toif_file = file.replace('.png', '.toif')
subprocess.run(['toiftool', 'convert', file, toif_file], check=True)
print("Commands applied to all .png files in the current directory.")

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

View File

@ -40,13 +40,42 @@ pub const FATAL_ERROR_COLOR: Color = Color::rgb(0xE7, 0x0E, 0x0E);
pub const FATAL_ERROR_HIGHLIGHT_COLOR: Color = Color::rgb(0xFF, 0x41, 0x41);
// UI icons (white color).
// TODO: icons
include_icon!(ICON_CHEVRON_DOWN, "layout_eckhart/res/chevron_down.toif");
include_icon!(
ICON_CHEVRON_DOWN_MINI,
"layout_eckhart/res/chevron_down_mini.toif"
);
include_icon!(ICON_CHEVRON_LEFT, "layout_eckhart/res/chevron_left.toif");
include_icon!(ICON_CHEVRON_RIGHT, "layout_eckhart/res/chevron_right.toif");
include_icon!(ICON_CHEVRON_UP, "layout_eckhart/res/chevron_up.toif");
include_icon!(ICON_CLOSE, "layout_eckhart/res/close.toif");
include_icon!(ICON_DONE, "layout_eckhart/res/done.toif");
include_icon!(ICON_FORESLASH, "layout_eckhart/res/foreslash.toif");
include_icon!(ICON_INFO, "layout_eckhart/res/info.toif");
include_icon!(ICON_MENU, "layout_eckhart/res/menu.toif");
include_icon!(ICON_WARNING, "layout_eckhart/res/warning.toif");
// Keyboard icons
include_icon!(ICON_ASTERISK, "layout_eckhart/res/keyboard/asterisk.toif");
include_icon!(ICON_CHECKMARK, "layout_eckhart/res/keyboard/checkmark.toif");
include_icon!(ICON_CROSS, "layout_eckhart/res/keyboard/cross.toif");
include_icon!(
ICON_DASH_HORIZONTAL,
"layout_eckhart/res/keyboard/dash_horizontal.toif"
);
include_icon!(
ICON_DASH_VERTICAL,
"layout_eckhart/res/keyboard/dash_vertical.toif"
);
include_icon!(ICON_DELETE, "layout_eckhart/res/keyboard/delete.toif");
include_icon!(ICON_SPACE, "layout_eckhart/res/keyboard/space.toif");
include_icon!(
ICON_SPECIAL_CHARS,
"layout_eckhart/res/keyboard/special_chars_group.toif"
);
// Welcome screen.
include_icon!(ICON_LOGO, "layout_jefferson/res/lock_full.toif");
include_icon!(ICON_LOGO, "layout_eckhart/res/lock_full.toif");
// Homescreen notifications.
include_icon!(ICON_WARNING40, "model_jefferson/res/warning40.toif");
include_icon!(ICON_WARNING40, "layout_eckhart/res/warning40.toif");
// TODO: button styles
pub const fn button_default() -> ButtonStyleSheet {