Merge pull request #245 from SibrenVasse/json-icon

[custom] Allow icon selection based on json alt attribute
This commit is contained in:
Alex 2019-03-26 09:26:58 +01:00 committed by GitHub
commit 7912b7f119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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()) {