|
|
|
@ -37,13 +37,28 @@ 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 OFF_WHITE_OLD_DISPLAY: Color = Color::rgb(0xF0, 0xF0, 0xF0); // very light grey
|
|
|
|
|
pub const GREY_LIGHT: Color = Color::rgb(0x90, 0x90, 0x90); // secondary text
|
|
|
|
|
pub const GREY_LIGHT_OLD_DISPLAY: Color = Color::rgb(0xD0, 0xD0, 0xD0); // secondary text
|
|
|
|
|
pub const GREY_MEDIUM: Color = Color::rgb(0x45, 0x45, 0x45); // button pressed
|
|
|
|
|
pub const GREY_MEDIUM_OLD_DISPLAY: Color = Color::rgb(0x85, 0x85, 0x85); // button pressed
|
|
|
|
|
pub const GREY_DARK: Color = Color::rgb(0x1A, 0x1A, 0x1A); // button
|
|
|
|
|
pub const GREY_DARK_OLD_DISPLAY: Color = Color::rgb(0x5A, 0x5A, 0x5A); // button
|
|
|
|
|
pub const VIOLET: Color = Color::rgb(0x95, 0x00, 0xCA);
|
|
|
|
|
|
|
|
|
|
pub const FATAL_ERROR_COLOR: Color = Color::rgb(0xAD, 0x2B, 0x2B);
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "model_tt")]
|
|
|
|
|
pub fn replace_colors_for_old_tt_display(color: Color) -> Color {
|
|
|
|
|
match color {
|
|
|
|
|
OFF_WHITE => OFF_WHITE_OLD_DISPLAY,
|
|
|
|
|
GREY_LIGHT => GREY_LIGHT_OLD_DISPLAY,
|
|
|
|
|
GREY_DARK => GREY_DARK_OLD_DISPLAY,
|
|
|
|
|
GREY_MEDIUM => GREY_MEDIUM_OLD_DISPLAY,
|
|
|
|
|
_ => color,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Commonly used corner radius (i.e. for buttons).
|
|
|
|
|
pub const RADIUS: u8 = 2;
|
|
|
|
|
|
|
|
|
|