feat(custom): allow icon selection based on json alt attribute

This commit is contained in:
Sibren Vasse 2019-03-26 00:19:55 +01:00
parent dda0cc793e
commit 55a6e4907b

View File

@ -98,7 +98,7 @@ auto waybar::modules::Custom::update() -> void
auto str = fmt::format(format_, text_,
fmt::arg("alt", alt_),
fmt::arg("icon", getIcon(percentage_)),
fmt::arg("icon", getIcon(percentage_, alt_)),
fmt::arg("percentage", percentage_));
label_.set_markup(str);
if (tooltipEnabled()) {