From 0c6317a27ba93cc39c8e4babd45932fe832a6edf Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:35:16 +0000 Subject: [PATCH] fix(bar): use correct transparency_alpha Previously when reading the `theme` from `komorebi.json` it was also getting the transparency_alpha from the `StaticConfig`, this is wrong, it should use the alpha from the bar config. This commit fixes that. --- komorebi-bar/src/bar.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/komorebi-bar/src/bar.rs b/komorebi-bar/src/bar.rs index f62728bf..8346f92b 100644 --- a/komorebi-bar/src/bar.rs +++ b/komorebi-bar/src/bar.rs @@ -231,6 +231,7 @@ impl Komobar { }, ); + let bar_transparency_alpha = config.transparency_alpha; let config = home_dir.join("komorebi.json"); match komorebi_client::StaticConfig::read(&config) { Ok(config) => { @@ -239,7 +240,7 @@ impl Komobar { ctx, KomobarTheme::from(theme), self.bg_color.clone(), - config.transparency_alpha, + bar_transparency_alpha, ); let stack_accent = match theme {