1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 07:20:56 +00:00

feat(lincoln): icon set

This commit is contained in:
obrusvit 2024-12-23 14:45:25 +01:00
parent ebac885665
commit 4ecf3a56a5
34 changed files with 31 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 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: 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

@ -44,11 +44,25 @@ pub const FATAL_ERROR_COLOR: Color = Color::rgb(0xE7, 0x0E, 0x0E);
pub const FATAL_ERROR_HIGHLIGHT_COLOR: Color = Color::rgb(0xFF, 0x41, 0x41); pub const FATAL_ERROR_HIGHLIGHT_COLOR: Color = Color::rgb(0xFF, 0x41, 0x41);
// UI icons (white color). // UI icons (white color).
// TODO: icons include_icon!(ICON_CHEVRON_DOWN, "model_lincoln/res/chevron_down.toif");
include_icon!(ICON_CHEVRON_LEFT, "model_lincoln/res/chevron_left.toif");
include_icon!(ICON_CHEVRON_RIGHT, "model_lincoln/res/chevron_right.toif");
include_icon!(ICON_CHEVRON_UP, "model_lincoln/res/chevron_up.toif");
include_icon!(ICON_CLOSE, "model_lincoln/res/close.toif");
include_icon!(ICON_DONE, "model_lincoln/res/done.toif");
include_icon!(ICON_FORESLASH, "model_lincoln/res/foreslash.toif");
include_icon!(ICON_INFO, "model_lincoln/res/info.toif");
include_icon!(ICON_MENU, "model_lincoln/res/menu.toif");
include_icon!(ICON_WARNING, "model_lincoln/res/warning.toif");
// Keyboard icons
include_icon!(ICON_ASTERISK, "model_lincoln/res/keyboard/asterisk.toif");
include_icon!(ICON_CHECKMARK, "model_lincoln/res/keyboard/checkmark.toif");
include_icon!(ICON_CROSS, "model_lincoln/res/keyboard/cross.toif");
include_icon!(ICON_DELETE, "model_lincoln/res/keyboard/delete.toif");
include_icon!(ICON_SPACE, "model_lincoln/res/keyboard/space.toif");
include_icon!(ICON_SPECIAL_CHARS, "model_lincoln/res/keyboard/special_chars_group.toif");
// Welcome screen. // Welcome screen.
include_icon!(ICON_LOGO, "model_lincoln/res/lock_full.toif"); include_icon!(ICON_LOGO, "model_lincoln/res/lock_full.toif");
// Homescreen notifications. // Homescreen notifications.
include_icon!(ICON_WARNING40, "model_lincoln/res/warning40.toif"); include_icon!(ICON_WARNING40, "model_lincoln/res/warning40.toif");