fix(Label): reverse only battery states

This commit is contained in:
Alex
2019-05-13 11:36:34 +02:00
parent fcb23d3104
commit 92967c7c06
3 changed files with 6 additions and 4 deletions

View File

@ -119,7 +119,7 @@ auto waybar::modules::Battery::update() -> void {
}
std::transform(status.begin(), status.end(), status.begin(), ::tolower);
auto format = format_;
auto state = getState(capacity);
auto state = getState(capacity, true);
label_.get_style_context()->remove_class(old_status_);
label_.get_style_context()->add_class(status);
old_status_ = status;