Add cava.silence to css

This commit is contained in:
Sonter 2024-08-14 14:43:17 +00:00 committed by GitHub
parent 62cb61c670
commit ed40168d89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -174,10 +174,14 @@ auto waybar::modules::Cava::update() -> void {
label_.show();
ALabel::update();
}
label_.get_style_context()->remove_class("silence");
} else {
upThreadDelay(frame_time_milsec_, suspend_silence_delay_);
if (hide_on_silence_) label_.hide();
else if (config_["format_silent"].isString()) label_.set_markup(format_silent_);
label_.get_style_context()->add_class("silence");
}
}