Skip to content

Commit

Permalink
fix(bar): read latest transparency_alpha value
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LGUG2Z committed Nov 20, 2024
1 parent d001d8a commit ac243c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion komorebi-bar/src/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit ac243c6

Please sign in to comment.