From ab788222a532d504eb4b548574e9f4a720cc9511 Mon Sep 17 00:00:00 2001 From: IceSentry <c.giguere42@gmail.com> Date: Fri, 7 Jan 2022 23:32:09 -0500 Subject: [PATCH] remove colors --- examples/text_box.rs | 2 +- kayak_core/src/color.rs | 32 -------------------------------- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/examples/text_box.rs b/examples/text_box.rs index 49b7a7f..6c1b71b 100644 --- a/examples/text_box.rs +++ b/examples/text_box.rs @@ -28,7 +28,7 @@ fn TextBoxExample(context: &mut KayakContext) { }; let red_text_styles = Style { - color: StyleProp::Value(Color::RED), + color: StyleProp::Value(Color::new(1., 0., 0., 1.)), ..input_styles.clone() }; diff --git a/kayak_core/src/color.rs b/kayak_core/src/color.rs index 94b81c1..b71a107 100644 --- a/kayak_core/src/color.rs +++ b/kayak_core/src/color.rs @@ -34,38 +34,6 @@ impl Color { a: 1.0, }; - /// The white color. - pub const GRAY: Color = Color { - r: 0.5, - g: 0.5, - b: 0.5, - a: 1.0, - }; - - /// The red color. - pub const RED: Color = Color { - r: 1.0, - g: 0.0, - b: 0.0, - a: 1.0, - }; - - /// The green color. - pub const GREEN: Color = Color { - r: 0.0, - g: 1.0, - b: 0.0, - a: 1.0, - }; - - /// The blue color. - pub const BLUE: Color = Color { - r: 0.0, - g: 0.0, - b: 1.0, - a: 1.0, - }; - /// A color with no opacity. pub const TRANSPARENT: Color = Color { r: 0.0, -- GitLab