chore: use with_alpha() where applicable
This commit is contained in:
parent
7748e59ae6
commit
ec7a531539
6 changed files with 57 additions and 91 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use crate::{composite::over, steps::steps, Component, Theme};
|
||||
use palette::{rgb::Rgba, Darken, IntoColor, Lighten, Srgba};
|
||||
use palette::{rgb::Rgba, Darken, IntoColor, Lighten, Srgba, WithAlpha};
|
||||
use std::{
|
||||
fs::{self, File},
|
||||
io::{self, Write},
|
||||
|
|
@ -75,8 +75,7 @@ impl Theme {
|
|||
Rgba::new(0.0, 0.0, 0.0, 0.08)
|
||||
});
|
||||
|
||||
let mut inverted_bg_divider = background.base;
|
||||
inverted_bg_divider.alpha = 0.5;
|
||||
let inverted_bg_divider = background.base.with_alpha(0.5);
|
||||
let scrollbar_outline = to_rgba(inverted_bg_divider);
|
||||
|
||||
let mut css = format! {r#"/* GENERATED BY COSMIC */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue