diff --git a/crates/theme2/src/theme2.rs b/crates/theme2/src/theme2.rs index c5c79237bacd4cac868ac1c7ac64645d04ce8275..ff80b9f5f9a2820ece15a49aa9b7257d0be9b89d 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 +}