From ac243c699226ba76dfcce022d4c126b4b639241c Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Tue, 19 Nov 2024 19:33:00 -0800 Subject: [PATCH] fix(bar): read latest transparency_alpha value This commit is a small fix which ensures that the latest value of transparency_alpha will be read and applied from config rather than self.config in the apply_config fn. --- komorebi-bar/src/bar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi-bar/src/bar.rs b/komorebi-bar/src/bar.rs index 321e3341..d94c036f 100644 --- a/komorebi-bar/src/bar.rs +++ b/komorebi-bar/src/bar.rs @@ -266,7 +266,7 @@ impl Komobar { .replace(config.new_renderconfig(theme_color)); self.bg_color - .replace(theme_color.try_apply_alpha(self.config.transparency_alpha)); + .replace(theme_color.try_apply_alpha(config.transparency_alpha)); if let Some(font_size) = &config.font_size { tracing::info!("attempting to set custom font size: {font_size}");