feat(lincoln): icon set
BIN
core/embed/rust/src/ui/model_lincoln/res/chevron_down.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/chevron_down.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/chevron_left.png
Normal file
After Width: | Height: | Size: 179 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/chevron_left.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/chevron_right.png
Normal file
After Width: | Height: | Size: 176 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/chevron_right.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/chevron_up.png
Normal file
After Width: | Height: | Size: 189 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/chevron_up.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/close.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/close.toif
Normal file
14
core/embed/rust/src/ui/model_lincoln/res/convert_png.py
Normal 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.")
|
BIN
core/embed/rust/src/ui/model_lincoln/res/done.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/done.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/foreslash.png
Normal file
After Width: | Height: | Size: 167 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/foreslash.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/info.png
Normal file
After Width: | Height: | Size: 198 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/info.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/asterisk.png
Normal file
After Width: | Height: | Size: 298 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/asterisk.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/checkmark.png
Normal file
After Width: | Height: | Size: 215 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/checkmark.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/cross.png
Normal file
After Width: | Height: | Size: 256 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/cross.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/delete.png
Normal file
After Width: | Height: | Size: 432 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/delete.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/space.png
Normal file
After Width: | Height: | Size: 188 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/keyboard/space.toif
Normal file
After Width: | Height: | Size: 571 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/menu.png
Normal file
After Width: | Height: | Size: 144 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/menu.toif
Normal file
BIN
core/embed/rust/src/ui/model_lincoln/res/warning.png
Normal file
After Width: | Height: | Size: 199 B |
BIN
core/embed/rust/src/ui/model_lincoln/res/warning.toif
Normal 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");
|
||||||
|
|
||||||
|