1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

chore(core): change the color definitions

This commit is contained in:
Jan Šetina 2023-02-17 15:17:42 +01:00 committed by matejcik
parent 79632d32c7
commit 30b636079e

View File

@ -28,19 +28,19 @@ 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 RED: Color = Color::rgb(0xCD, 0x49, 0x49); // dark-coral
pub const RED_DARK: Color = Color::rgb(0xA6, 0x2D, 0x2D);
pub const YELLOW: Color = Color::rgb(0xC1, 0x90, 0x09); // ochre
pub const YELLOW_DARK: Color = Color::rgb(0x9A, 0x73, 0x06); // FIXME
pub const GREEN: Color = Color::rgb(0x39, 0xA8, 0x14); // grass-green
pub const GREEN_DARK: Color = Color::rgb(0x10, 0xAB, 0x57);
pub const BLUE: Color = Color::rgb(0, 0x56, 0xBE); // blue
pub const BLUE_DARK: Color = Color::rgb(0, 0x44, 0x98); // FIXME
pub const RED: Color = Color::rgb(0xE7, 0x0E, 0x0E); // button
pub const RED_DARK: Color = Color::rgb(0xAE, 0x09, 0x09); // button pressed
pub const YELLOW: Color = Color::rgb(0xD9, 0x9E, 0x00); // button
pub const YELLOW_DARK: Color = Color::rgb(0x7A, 0x58, 0x00); // button pressed
pub const GREEN: Color = Color::rgb(0x00, 0xA7, 0x25); // button
pub const GREEN_DARK: Color = Color::rgb(0x00, 0x55, 0x1D); // button pressed
pub const BLUE: Color = Color::rgb(0x06, 0x1E, 0xAD); // button
pub const BLUE_DARK: Color = Color::rgb(0x04, 0x10, 0x58); // button pressed
pub const OFF_WHITE: Color = Color::rgb(0xDE, 0xDE, 0xDE); // very light grey
pub const GREY_LIGHT: Color = Color::rgb(0xA8, 0xA8, 0xA8); // greyish
pub const GREY_MEDIUM: Color = Color::rgb(0x64, 0x64, 0x64);
pub const GREY_DARK: Color = Color::rgb(0x33, 0x33, 0x33); // greyer
pub const VIOLET: Color = Color::rgb(0x9E, 0x27, 0xD6);
pub const GREY_LIGHT: Color = Color::rgb(0x90, 0x90, 0x90); // secondary text
pub const GREY_MEDIUM: Color = Color::rgb(0x45, 0x45, 0x45); // button pressed
pub const GREY_DARK: Color = Color::rgb(0x1A, 0x1A, 0x1A); // button
pub const VIOLET: Color = Color::rgb(0x95, 0x00, 0xCA);
// Commonly used corner radius (i.e. for buttons).
pub const RADIUS: u8 = 2;