Skip to content

Commit

Permalink
fix(bar): use bg color before applying transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ds13 committed Dec 18, 2024
1 parent e70295e commit 6654a39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion komorebi-bar/src/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6654a39

Please sign in to comment.