Revert "feat(percent): adds a percent class to numeric modules"

This reverts commit 82302e58f3b611f7ff6d686d1783b1c32914f7c9.
This commit is contained in:
Dan
2019-05-02 21:39:45 -04:00
parent e158a3e132
commit 3bac96945c
6 changed files with 0 additions and 19 deletions

View File

@ -179,13 +179,8 @@ auto waybar::modules::Backlight::update() -> void {
}
const auto percent = best->get_max() == 0 ? 100 : best->get_actual() * 100 / best->get_max();
const auto percentClass = "percent" + std::to_string(int(std::ceil(percent/5)*5));
label_.set_markup(fmt::format(
format_, fmt::arg("percent", std::to_string(percent)), fmt::arg("icon", getIcon(percent))));
label_.get_style_context()->remove_class(old_percent_);
label_.get_style_context()->add_class(percentClass);
old_percent_ = percentClass;
} else {
if (!previous_best_.has_value()) {
return;