mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-24 10:21:21 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user