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