1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Create gray -> grey doc aliases (#5362)

As someone who uses "grey" instead of "gray", it is annoying that my
autocomplete can never find any of the "gray" color related things, so
this adds doc aliases for that.

* [x] I have followed the instructions in the PR template
This commit is contained in:
GiGaGon
2024-11-11 04:21:58 -08:00
committed by GitHub
parent 3c7ad0ee12
commit 1787952a83
4 changed files with 7 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ impl Rgba {
Self([r, g, b, 1.0])
}
#[doc(alias = "from_grey")]
#[inline]
pub const fn from_gray(l: f32) -> Self {
Self([l, l, l, 1.0])