Rename cava css values
This commit is contained in:
parent
367f156eb0
commit
36497cd41a
|
@ -173,17 +173,17 @@ 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()->add_class("updated");
|
||||||
}
|
}
|
||||||
|
|
||||||
label_.get_style_context()->remove_class("silence");
|
label_.get_style_context()->remove_class("silent");
|
||||||
} else {
|
} else {
|
||||||
upThreadDelay(frame_time_milsec_, suspend_silence_delay_);
|
upThreadDelay(frame_time_milsec_, suspend_silence_delay_);
|
||||||
if (hide_on_silence_) label_.hide();
|
if (hide_on_silence_) label_.hide();
|
||||||
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("silent");
|
||||||
label_.get_style_context()->remove_class("update");
|
label_.get_style_context()->remove_class("updated");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue