diff --git a/examples/text_box.rs b/examples/text_box.rs index 49b7a7f4327fbe69f7308e9094728dc2f73951f6..6c1b71b3e4c03ae83c4f3a4c64730f3b40f6397e 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 94b81c157ce89e3fe449425cf77d592cfd82aece..b71a107f2f4f7e529d7953a2326871a18c3316a2 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,