diff --git a/core/embed/rust/src/ui/model_lincoln/res/chevron_down.png b/core/embed/rust/src/ui/model_lincoln/res/chevron_down.png new file mode 100644 index 0000000000..21644fe9ad Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/chevron_down.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/chevron_down.toif b/core/embed/rust/src/ui/model_lincoln/res/chevron_down.toif new file mode 100644 index 0000000000..ad71377221 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/chevron_down.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/chevron_left.png b/core/embed/rust/src/ui/model_lincoln/res/chevron_left.png new file mode 100644 index 0000000000..8f36d9bdd5 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/chevron_left.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/chevron_left.toif b/core/embed/rust/src/ui/model_lincoln/res/chevron_left.toif new file mode 100644 index 0000000000..e3bee2a0c4 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/chevron_left.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/chevron_right.png b/core/embed/rust/src/ui/model_lincoln/res/chevron_right.png new file mode 100644 index 0000000000..31934c472c Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/chevron_right.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/chevron_right.toif b/core/embed/rust/src/ui/model_lincoln/res/chevron_right.toif new file mode 100644 index 0000000000..7e7209dbf5 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/chevron_right.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/chevron_up.png b/core/embed/rust/src/ui/model_lincoln/res/chevron_up.png new file mode 100644 index 0000000000..517524e312 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/chevron_up.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/chevron_up.toif b/core/embed/rust/src/ui/model_lincoln/res/chevron_up.toif new file mode 100644 index 0000000000..ef2ecf063a Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/chevron_up.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/close.png b/core/embed/rust/src/ui/model_lincoln/res/close.png new file mode 100644 index 0000000000..6cc4268e5a Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/close.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/close.toif b/core/embed/rust/src/ui/model_lincoln/res/close.toif new file mode 100644 index 0000000000..1bf57cc8eb Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/close.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/convert_png.py b/core/embed/rust/src/ui/model_lincoln/res/convert_png.py new file mode 100644 index 0000000000..7f9bfe329f --- /dev/null +++ b/core/embed/rust/src/ui/model_lincoln/res/convert_png.py @@ -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.") diff --git a/core/embed/rust/src/ui/model_lincoln/res/done.png b/core/embed/rust/src/ui/model_lincoln/res/done.png new file mode 100644 index 0000000000..16af9e2857 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/done.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/done.toif b/core/embed/rust/src/ui/model_lincoln/res/done.toif new file mode 100644 index 0000000000..fa4fe1d8ff Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/done.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/foreslash.png b/core/embed/rust/src/ui/model_lincoln/res/foreslash.png new file mode 100644 index 0000000000..b9d6c97099 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/foreslash.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/foreslash.toif b/core/embed/rust/src/ui/model_lincoln/res/foreslash.toif new file mode 100644 index 0000000000..e910057a4c Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/foreslash.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/info.png b/core/embed/rust/src/ui/model_lincoln/res/info.png new file mode 100644 index 0000000000..4360b8343a Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/info.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/info.toif b/core/embed/rust/src/ui/model_lincoln/res/info.toif new file mode 100644 index 0000000000..dc1bad8afb Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/info.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/asterisk.png b/core/embed/rust/src/ui/model_lincoln/res/keyboard/asterisk.png new file mode 100644 index 0000000000..9720aaa0e0 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/asterisk.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/asterisk.toif b/core/embed/rust/src/ui/model_lincoln/res/keyboard/asterisk.toif new file mode 100644 index 0000000000..9fababae9f Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/asterisk.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/checkmark.png b/core/embed/rust/src/ui/model_lincoln/res/keyboard/checkmark.png new file mode 100644 index 0000000000..ba7c381541 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/checkmark.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/checkmark.toif b/core/embed/rust/src/ui/model_lincoln/res/keyboard/checkmark.toif new file mode 100644 index 0000000000..bfbb028405 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/checkmark.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/cross.png b/core/embed/rust/src/ui/model_lincoln/res/keyboard/cross.png new file mode 100644 index 0000000000..f71cc73afb Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/cross.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/cross.toif b/core/embed/rust/src/ui/model_lincoln/res/keyboard/cross.toif new file mode 100644 index 0000000000..a0b89ecf36 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/cross.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/delete.png b/core/embed/rust/src/ui/model_lincoln/res/keyboard/delete.png new file mode 100644 index 0000000000..80e16f7d99 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/delete.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/delete.toif b/core/embed/rust/src/ui/model_lincoln/res/keyboard/delete.toif new file mode 100644 index 0000000000..d51f0ef137 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/delete.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/space.png b/core/embed/rust/src/ui/model_lincoln/res/keyboard/space.png new file mode 100644 index 0000000000..c1ebd0dec3 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/space.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/space.toif b/core/embed/rust/src/ui/model_lincoln/res/keyboard/space.toif new file mode 100644 index 0000000000..fd44133f4d Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/space.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/special_chars_group.png b/core/embed/rust/src/ui/model_lincoln/res/keyboard/special_chars_group.png new file mode 100644 index 0000000000..6476b7de1e Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/special_chars_group.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/keyboard/special_chars_group.toif b/core/embed/rust/src/ui/model_lincoln/res/keyboard/special_chars_group.toif new file mode 100644 index 0000000000..031663b041 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/keyboard/special_chars_group.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/menu.png b/core/embed/rust/src/ui/model_lincoln/res/menu.png new file mode 100644 index 0000000000..862a88e32a Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/menu.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/menu.toif b/core/embed/rust/src/ui/model_lincoln/res/menu.toif new file mode 100644 index 0000000000..bfb25427d2 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/menu.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/warning.png b/core/embed/rust/src/ui/model_lincoln/res/warning.png new file mode 100644 index 0000000000..ebd3324e41 Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/warning.png differ diff --git a/core/embed/rust/src/ui/model_lincoln/res/warning.toif b/core/embed/rust/src/ui/model_lincoln/res/warning.toif new file mode 100644 index 0000000000..4f6cddd21a Binary files /dev/null and b/core/embed/rust/src/ui/model_lincoln/res/warning.toif differ diff --git a/core/embed/rust/src/ui/model_lincoln/theme/mod.rs b/core/embed/rust/src/ui/model_lincoln/theme/mod.rs index 1e4cc9c359..e7172a970c 100644 --- a/core/embed/rust/src/ui/model_lincoln/theme/mod.rs +++ b/core/embed/rust/src/ui/model_lincoln/theme/mod.rs @@ -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); // 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. include_icon!(ICON_LOGO, "model_lincoln/res/lock_full.toif"); - // Homescreen notifications. include_icon!(ICON_WARNING40, "model_lincoln/res/warning40.toif");