Skip to content
Permalink
Browse files

Adding transparent white.

Using helper color function (less verbose and clear to understand).
  • Loading branch information
Adenilson committed Apr 22, 2015
1 parent 23945f2 commit 95bcc5747c9fa849b2cb6e4205adc0f684176505
Showing with 6 additions and 1 deletion.
  1. +5 −0 components/gfx/color.rs
  2. +1 −1 components/layout/display_list_builder.rs
@@ -39,3 +39,8 @@ pub fn transparent_black() -> AzColor {
pub fn white() -> AzColor {
AzColor { r: 1.0, g: 1.0, b: 1.0, a: 1.0 }
}

#[inline]
pub fn transparent_white() -> AzColor {
AzColor { r: 1.0, g: 1.0, b: 1.0, a: 0.0 }
}
@@ -1318,7 +1318,7 @@ impl BlockFlowDisplayListBuilding for BlockFlow {
ScrollPolicy::Scrollable
};

let transparent = color::rgba(1.0, 1.0, 1.0, 0.0);
let transparent = color::transparent_white();
let stacking_context =
self.create_stacking_context(display_list,
Some(Arc::new(PaintLayer::new(self.layer_id(0),

0 comments on commit 95bcc57

Please sign in to comment.
You can’t perform that action at this time.