feat(Battery): get icon by state

pull/316/head
Alex 2019-05-16 17:18:27 +02:00
parent 8901df9702
commit 4b4b74db0c
1 changed files with 2 additions and 2 deletions

View File

@ -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))));
}
}