mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(Battery): get icon by state
This commit is contained in:
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
Block a user