From 4d100d8fe5b591226d9f76026ce05aefbf94626e Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 27 Feb 2024 22:18:55 +0100 Subject: [PATCH] cfg gate the stuff --- hui/src/color.rs | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/hui/src/color.rs b/hui/src/color.rs index 0248b7d..d68067d 100644 --- a/hui/src/color.rs +++ b/hui/src/color.rs @@ -3,99 +3,99 @@ use glam::{vec4, Vec4}; /// Transparent `#00000000` -/// +#[cfg_attr(doc, doc="")] pub const TRANSPARENT: Vec4 = vec4(0.0, 0.0, 0.0, 0.0); /// Black `#000000` -/// +#[cfg_attr(doc, doc="")] pub const BLACK: Vec4 = vec4(0.0, 0.0, 0.0, 1.0); /// White `#ffffff` -/// +#[cfg_attr(doc, doc="")] pub const WHITE: Vec4 = vec4(1.0, 1.0, 1.0, 1.0); /// Red `#ff0000` -/// +#[cfg_attr(doc, doc="")] pub const RED: Vec4 = vec4(1.0, 0.0, 0.0, 1.0); /// Dark red `#800000` -/// +#[cfg_attr(doc, doc="")] pub const DARK_RED: Vec4 = vec4(0.5, 0.0, 0.0, 1.0); /// Green `#00ff00` -/// +#[cfg_attr(doc, doc="")] pub const GREEN: Vec4 = vec4(0.0, 1.0, 0.0, 1.0); /// Dark green `#008000` -/// +#[cfg_attr(doc, doc="")] pub const DARK_GREEN: Vec4 = vec4(0.0, 0.5, 0.0, 1.0); /// Blue `#0000ff` -/// +#[cfg_attr(doc, doc="")] pub const BLUE: Vec4 = vec4(0.0, 0.0, 1.0, 1.0); /// Dark blue `#000080` -/// +#[cfg_attr(doc, doc="")] pub const DARK_BLUE: Vec4 = vec4(0.0, 0.0, 0.5, 1.0); /// Yellow `#ffff00` -/// +#[cfg_attr(doc, doc="")] pub const YELLOW: Vec4 = vec4(1.0, 1.0, 0.0, 1.0); /// Cyan `#00ffff` -/// +#[cfg_attr(doc, doc="")] pub const CYAN: Vec4 = vec4(0.0, 1.0, 1.0, 1.0); /// Magenta `#ff00ff` -/// +#[cfg_attr(doc, doc="")] pub const MAGENTA: Vec4 = vec4(1.0, 0.0, 1.0, 1.0); /// Gray `#808080` -/// +#[cfg_attr(doc, doc="")] pub const GRAY: Vec4 = vec4(0.5, 0.5, 0.5, 1.0); /// Light gray `#c0c0c0` -/// +#[cfg_attr(doc, doc="")] pub const LIGHT_GRAY: Vec4 = vec4(0.75, 0.75, 0.75, 1.0); /// Dark gray `#404040` -/// +#[cfg_attr(doc, doc="")] pub const DARK_GRAY: Vec4 = vec4(0.25, 0.25, 0.25, 1.0); /// Orange `#ff8000` -/// +#[cfg_attr(doc, doc="")] pub const ORANGE: Vec4 = vec4(1.0, 0.5, 0.0, 1.0); /// Brown `#804000` -/// +#[cfg_attr(doc, doc="")] pub const BROWN: Vec4 = vec4(0.5, 0.25, 0.0, 1.0); /// Pink `#ff80ff` -/// +#[cfg_attr(doc, doc="")] pub const PINK: Vec4 = vec4(1.0, 0.5, 1.0, 1.0); /// Purple `#800080` -/// +#[cfg_attr(doc, doc="")] pub const PURPLE: Vec4 = vec4(0.5, 0.0, 0.5, 1.0); /// Lime `#80ff00` -/// +#[cfg_attr(doc, doc="")] pub const LIME: Vec4 = vec4(0.5, 1.0, 0.0, 1.0); /// Teal `#008080` -/// +#[cfg_attr(doc, doc="")] pub const TEAL: Vec4 = vec4(0.0, 0.5, 0.5, 1.0); /// Indigo `#004080` -/// +#[cfg_attr(doc, doc="")] pub const INDIGO: Vec4 = vec4(0.0, 0.25, 0.5, 1.0); /// Olive `#808000` -/// +#[cfg_attr(doc, doc="")] pub const OLIVE: Vec4 = vec4(0.5, 0.5, 0.0, 1.0); /// Sky blue `#87ceeb` -/// +#[cfg_attr(doc, doc="")] pub const SKY_BLUE: Vec4 = vec4(0.53, 0.81, 0.92, 1.0); //TODO color macro