Skip to content
Snippets Groups Projects
Commit ab788222 authored by IceSentry's avatar IceSentry
Browse files

remove colors

parent 05ac1ccf
No related branches found
No related tags found
No related merge requests found
......@@ -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()
};
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment