mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-08 22:15:14 +02: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");
|
let config = home_dir.join("komorebi.json");
|
||||||
match komorebi_client::StaticConfig::read(&config) {
|
match komorebi_client::StaticConfig::read(&config) {
|
||||||
Ok(config) => {
|
Ok(config) => {
|
||||||
@@ -239,7 +240,7 @@ impl Komobar {
|
|||||||
ctx,
|
ctx,
|
||||||
KomobarTheme::from(theme),
|
KomobarTheme::from(theme),
|
||||||
self.bg_color.clone(),
|
self.bg_color.clone(),
|
||||||
config.transparency_alpha,
|
bar_transparency_alpha,
|
||||||
);
|
);
|
||||||
|
|
||||||
let stack_accent = match theme {
|
let stack_accent = match theme {
|
||||||
|
|||||||
Reference in New Issue
Block a user