Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
add `color_alpha` function
Nate Butlerda3ba35d1cf4
diff --git a/crates/theme2/src/theme2.rs b/crates/theme2/src/theme2.rsindex c5c79237bac..ff80b9f5f9a 100644--- a/crates/theme2/src/theme2.rs+++ b/crates/theme2/src/theme2.rs@@ -150,3 +150,9 @@ pub struct DiagnosticStyle {pub hint: Hsla,pub ignored: Hsla,}++pub fn color_alpha(color: Hsla, alpha: f32) -> Hsla {+ let mut color = color;+ color.a = alpha;+ color+}