mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(Label): reverse only battery states
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user