feat(Battery): get icon by state

This commit is contained in:
Alex 2019-05-16 17:18:27 +02:00
parent 8901df9702
commit 4b4b74db0c

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