pub const BASE_COLOR: [f32; 4] = [0.18, 0.23, 0.30, 0.16];
pub const HILITE_COLOR: [f32; 4] = [0.28, 0.90, 1.0, 0.60];
pub const NEIGHBOUR_COLOR: [f32; 4] = [0.28, 0.65, 0.95, 0.20];
pub const INACTIVE_COLOR: [f32; 4] = [0.14, 0.18, 0.24, 0.06];
pub const BEVEL_COLOR: [f32; 4] = [0.86, 0.92, 1.0, 0.45];
pub const BEVEL_PROXIMITY: [f32; 4] = [0.93, 0.96, 1.0, 0.60];
pub const BEVEL_AWAY: [f32; 4] = [0.48, 0.53, 0.60, 0.10];
pub const EDGE_COLOR: [f32; 4] = [0.84, 0.88, 0.94, 0.62];
pub const EDGE_PROXIMITY: [f32; 4] = [0.90, 0.94, 1.0, 0.9];
pub const EDGE_HILITE: [f32; 4] = [0.4, 0.84, 1.0, 1.0];
pub const EDGE_NEIGHBOUR: [f32; 4] = [0.4, 0.84, 1.0, 0.80];
pub const EDGE_AWAY: [f32; 4] = [0.55, 0.60, 0.68, 0.10];
pub const LABEL_COLOR: [f32; 4] = [0.92, 0.95, 1.0, 0.80];
pub const LABEL_PROXIMITY: [f32; 4] = [0.98, 0.99, 1.0, 0.95];
pub const LABEL_HILITE: [f32; 4] = [1.0, 1.0, 1.0, 1.0];
pub const GLOW_COLOR: [f32; 4] = [0.4, 0.84, 1.0, 0.22];
pub const RING_COLOR: [f32; 4] = [0.62, 0.68, 0.76, 0.70];
pub const RING_PROXIMITY: [f32; 4] = [0.75, 0.81, 0.88, 0.90];
pub const RING_HILITE: [f32; 4] = [0.4, 0.84, 1.0, 0.95];
pub const TURNTABLE_COLOR: [f32; 4] = [0.008, 0.010, 0.016, 0.72];
pub const RING_FILL: [f32; 4] = [0.59, 0.725, 0.824, 0.35];
pub const RING_FILL_PROXIMITY: [f32; 4] = [0.68, 0.80, 0.89, 0.45];
pub const RING_FILL_HILITE: [f32; 4] = [0.4, 0.84, 1.0, 0.55];
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn the_palette_is_unchanged() {
for (actual, expected) in [
(BASE_COLOR, [0.18, 0.23, 0.30, 0.16]),
(HILITE_COLOR, [0.28, 0.90, 1.0, 0.60]),
(NEIGHBOUR_COLOR, [0.28, 0.65, 0.95, 0.20]),
(INACTIVE_COLOR, [0.14, 0.18, 0.24, 0.06]),
(BEVEL_COLOR, [0.86, 0.92, 1.0, 0.45]),
(BEVEL_PROXIMITY, [0.93, 0.96, 1.0, 0.60]),
(BEVEL_AWAY, [0.48, 0.53, 0.60, 0.10]),
(EDGE_COLOR, [0.84, 0.88, 0.94, 0.62]),
(EDGE_PROXIMITY, [0.90, 0.94, 1.0, 0.9]),
(EDGE_HILITE, [0.4, 0.84, 1.0, 1.0]),
(EDGE_NEIGHBOUR, [0.4, 0.84, 1.0, 0.80]),
(EDGE_AWAY, [0.55, 0.60, 0.68, 0.10]),
(LABEL_COLOR, [0.92, 0.95, 1.0, 0.80]),
(LABEL_PROXIMITY, [0.98, 0.99, 1.0, 0.95]),
(LABEL_HILITE, [1.0, 1.0, 1.0, 1.0]),
(GLOW_COLOR, [0.4, 0.84, 1.0, 0.22]),
(RING_COLOR, [0.62, 0.68, 0.76, 0.70]),
(RING_PROXIMITY, [0.75, 0.81, 0.88, 0.90]),
(RING_HILITE, [0.4, 0.84, 1.0, 0.95]),
(TURNTABLE_COLOR, [0.008, 0.010, 0.016, 0.72]),
(RING_FILL, [0.59, 0.725, 0.824, 0.35]),
(RING_FILL_PROXIMITY, [0.68, 0.80, 0.89, 0.45]),
(RING_FILL_HILITE, [0.4, 0.84, 1.0, 0.55]),
] {
assert_eq!(actual, expected);
}
}
}