jevsnes.git / packages / panels / src / palette.rs
1//! Every colour the panels draw with, in one place.
2//!
3//! Picked for the dark theme the window runs in: each is light enough to read
4//! as text on egui's dark panel fill. Change a colour here and every panel
5//! follows.
6
7use egui::Color32;
8
9/// Secondary text: counts, screens, "last score".
10pub const GREY: Color32 = Color32::from_rgb(0x80, 0x80, 0x80);
11/// Something the bot has given up on: dim, so the eye passes over it.
12pub const FAINT: Color32 = Color32::from_rgb(0x5A, 0x60, 0x6B);
13/// Something wrong: a trap fired, a read that mapped to nothing.
14pub const RED: Color32 = Color32::from_rgb(0xE0, 0x50, 0x50);
15/// Done: a goal the bot scores complete, and the task it is on now.
16pub const GOOD: Color32 = Color32::from_rgb(0x3C, 0xD0, 0x5A);
17/// The bot's own words: its info line.
18pub const GOAL: Color32 = Color32::from_rgb(0xE8, 0xC2, 0x4A);
19/// Ordinary entries.
20pub const PLAIN: Color32 = Color32::from_rgb(0xB8, 0xC4, 0xD4);
21/// Section headings.
22pub const SECTION: Color32 = Color32::from_rgb(0xA9, 0x98, 0xD8);
23/// What Jev itself would have picked, when sampling took something else -
24/// the interesting case, so it gets its own colour rather than reading as
25/// just another option.
26pub const FAVOURITE: Color32 = Color32::from_rgb(0xE0, 0xA0, 0x30);