Add cava.update to css

This commit is contained in:
Sonter 2024-08-14 19:25:07 +03:00
parent ed40168d89
commit 367f156eb0
1 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ auto waybar::modules::Cava::update() -> void {
label_.set_markup(text_); label_.set_markup(text_);
label_.show(); label_.show();
ALabel::update(); ALabel::update();
label_.get_style_context()->add_class("update");
} }
label_.get_style_context()->remove_class("silence"); label_.get_style_context()->remove_class("silence");
@ -182,6 +183,7 @@ auto waybar::modules::Cava::update() -> void {
else if (config_["format_silent"].isString()) label_.set_markup(format_silent_); else if (config_["format_silent"].isString()) label_.set_markup(format_silent_);
label_.get_style_context()->add_class("silence"); label_.get_style_context()->add_class("silence");
label_.get_style_context()->remove_class("update");
} }
} }