From 50623804f97b3c9204079700e49d769c4de5d559 Mon Sep 17 00:00:00 2001 From: obrusvit Date: Fri, 20 Dec 2024 15:51:30 +0100 Subject: [PATCH] feat(lincoln): color palette --- core/embed/rust/src/ui/model_lincoln/theme/mod.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 f1c55f127b..224495bb6d 100644 --- a/core/embed/rust/src/ui/model_lincoln/theme/mod.rs +++ b/core/embed/rust/src/ui/model_lincoln/theme/mod.rs @@ -12,13 +12,24 @@ use super::component::{ButtonStyle, ButtonStyleSheet, ResultStyle}; pub const ERASE_HOLD_DURATION: Duration = Duration::from_millis(1500); // Color palette. -// TODO: colors pub const WHITE: Color = Color::rgb(0xFF, 0xFF, 0xFF); pub const BLACK: Color = Color::rgb(0, 0, 0); pub const FG: Color = WHITE; // Default foreground (text & icon) color. pub const BG: Color = BLACK; // Default background color. +pub const GREY_SUPER_DARK: Color = Color::rgb(0x0B, 0x10, 0x12); +pub const GREY_EXTRA_DARK: Color = Color::rgb(0x16, 0x1F, 0x24); pub const GREY_DARK: Color = Color::rgb(0x46, 0x48, 0x4A); +pub const GREY: Color = Color::rgb(0x8B, 0x8F, 0x93); pub const GREY_LIGHT: Color = Color::rgb(0xC7, 0xCD, 0xD3); +pub const GREY_EXTRA_LIGHT: Color = Color::rgb(0xF0, 0xF0, 0xF0); +pub const GREEN_DARK: Color = Color::rgb(0x06, 0x1E, 0x19); +pub const GREEN: Color = Color::rgb(0x08, 0x74, 0x48); +pub const GREEN_LIGHT: Color = Color::rgb(0x0B, 0xA5, 0x67); +pub const GREEN_LIME: Color = Color::rgb(0x9B, 0xE8, 0x87); +pub const ORANGE_DARK: Color = Color::rgb(0x18, 0x0C, 0x0A); +pub const ORANGE_DIMMED: Color = Color::rgb(0x9E, 0x57, 0x42); +pub const ORANGE: Color = Color::rgb(0xFF, 0x63, 0x30); +pub const YELLOW: Color = Color::rgb(0xFF, 0xE4, 0x58); pub const FATAL_ERROR_COLOR: Color = Color::rgb(0xE7, 0x0E, 0x0E); pub const FATAL_ERROR_HIGHLIGHT_COLOR: Color = Color::rgb(0xFF, 0x41, 0x41);