pub struct TrafficLightAnimation {
pub duration_ms: f64,
pub easing: &'static str,
}
pub const HOVER_IN: TrafficLightAnimation = TrafficLightAnimation {
duration_ms: 100.0,
easing: "ease-in",
};
pub const HOVER_OUT: TrafficLightAnimation = TrafficLightAnimation {
duration_ms: 150.0,
easing: "ease-out",
};
pub mod colors {
pub const CLOSE: (f64, f64, f64) = (1.0, 0.38, 0.35);
pub const MINIMIZE: (f64, f64, f64) = (1.0, 0.75, 0.0);
pub const MAXIMIZE: (f64, f64, f64) = (0.16, 0.82, 0.35);
pub const UNFOCUSED: (f64, f64, f64) = (0.85, 0.85, 0.85);
}
pub const PRESS_DARKEN_FACTOR: f64 = 0.8;
#[inline]
pub fn darken_color(color: (f64, f64, f64), factor: f64) -> (f64, f64, f64) {
(color.0 * factor, color.1 * factor, color.2 * factor)
}
pub const PRESS_INSTANT: bool = true;