fix(bar): use bg color before applying transparency

This commit is contained in:
alex-ds13
2024-12-18 19:52:59 +00:00
committed by جاد
parent 0c6317a27b
commit eda91dcd1d

View File

@@ -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();