From eda91dcd1dad84a7ec308be060374c8d643f4c82 Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:52:59 +0000 Subject: [PATCH] fix(bar): use bg color before applying transparency --- 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 8346f92bf..69ff22add 100644 --- a/komorebi-bar/src/bar.rs +++ b/komorebi-bar/src/bar.rs @@ -213,6 +213,7 @@ impl Komobar { } } + let background_color_before_transparency = *self.bg_color.borrow(); match config.theme { Some(theme) => { apply_theme(ctx, theme, self.bg_color.clone(), config.transparency_alpha); @@ -289,7 +290,7 @@ impl Komobar { } self.render_config - .replace(config.new_renderconfig(ctx, *self.bg_color.borrow())); + .replace(config.new_renderconfig(ctx, background_color_before_transparency)); let mut komorebi_notification_state = previous_notification_state; let mut komorebi_widgets = Vec::new();