remove usages of theme::color_alpha
This commit is contained in:
parent
0e26d22fea
commit
c0d11be75f
4 changed files with 5 additions and 16 deletions
|
@ -333,14 +333,6 @@ impl Theme {
|
|||
}
|
||||
}
|
||||
|
||||
/// Compounds a color with an alpha value.
|
||||
/// TODO: Replace this with a method on Hsla.
|
||||
pub fn color_alpha(color: Hsla, alpha: f32) -> Hsla {
|
||||
let mut color = color;
|
||||
color.a = alpha;
|
||||
color
|
||||
}
|
||||
|
||||
/// Asynchronously reads the user theme from the specified path.
|
||||
pub async fn read_user_theme(theme_path: &Path, fs: Arc<dyn Fs>) -> Result<ThemeFamilyContent> {
|
||||
let reader = fs.open_sync(theme_path).await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue