feat(Battery): get icon by state
parent
8901df9702
commit
4b4b74db0c
|
@ -147,7 +147,7 @@ auto waybar::modules::Battery::update() -> void {
|
|||
event_box_.hide();
|
||||
} else {
|
||||
event_box_.show();
|
||||
label_.set_markup(
|
||||
fmt::format(format, fmt::arg("capacity", capacity), fmt::arg("icon", getIcon(capacity))));
|
||||
label_.set_markup(fmt::format(
|
||||
format, fmt::arg("capacity", capacity), fmt::arg("icon", getIcon(capacity, state))));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue