add color_alpha
function
This commit is contained in:
parent
fffe4f51fb
commit
da3ba35d1c
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue