fix(bar): use correct transparency_alpha

Previously when reading the `theme` from `komorebi.json` it was also
getting the transparency_alpha from the `StaticConfig`, this is wrong,
it should use the alpha from the bar config. This commit fixes that.
This commit is contained in:
alex-ds13
2024-12-18 19:35:16 +00:00
committed by جاد
parent 5c81a8c9e2
commit 0c6317a27b

View File

@@ -231,6 +231,7 @@ impl Komobar {
},
);
let bar_transparency_alpha = config.transparency_alpha;
let config = home_dir.join("komorebi.json");
match komorebi_client::StaticConfig::read(&config) {
Ok(config) => {
@@ -239,7 +240,7 @@ impl Komobar {
ctx,
KomobarTheme::from(theme),
self.bg_color.clone(),
config.transparency_alpha,
bar_transparency_alpha,
);
let stack_accent = match theme {