Skip to content

Commit 15ee98d

Browse files
Add "transparent" doc alias for Color::NONE (#7160)
As mentioned in #6530. It allows to not create a new constant and simply having it to show up in the documentation when someone is looking for "transparent" (case insensitive) in rustdoc search. cc @alice-i-cecile
1 parent 6cc01c1 commit 15ee98d

File tree

1 file changed

+1
-0
lines changed
  • crates/bevy_render/src/color

1 file changed

+1
-0
lines changed

crates/bevy_render/src/color/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ impl Color {
9191
/// <div style="background-color:rgb(0%, 0%, 50%); width: 10px; padding: 10px; border: 1px solid;"></div>
9292
pub const NAVY: Color = Color::rgb(0.0, 0.0, 0.5);
9393
/// <div style="background-color:rgba(0%, 0%, 0%, 0%); width: 10px; padding: 10px; border: 1px solid;"></div>
94+
#[doc(alias = "transparent")]
9495
pub const NONE: Color = Color::rgba(0.0, 0.0, 0.0, 0.0);
9596
/// <div style="background-color:rgb(50%, 50%, 0%); width: 10px; padding: 10px; border: 1px solid;"></div>
9697
pub const OLIVE: Color = Color::rgb(0.5, 0.5, 0.0);

0 commit comments

Comments
 (0)