mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(custom): allow icon selection based on json alt attribute
This commit is contained in:
parent
dda0cc793e
commit
55a6e4907b
@ -98,7 +98,7 @@ auto waybar::modules::Custom::update() -> void
|
|||||||
|
|
||||||
auto str = fmt::format(format_, text_,
|
auto str = fmt::format(format_, text_,
|
||||||
fmt::arg("alt", alt_),
|
fmt::arg("alt", alt_),
|
||||||
fmt::arg("icon", getIcon(percentage_)),
|
fmt::arg("icon", getIcon(percentage_, alt_)),
|
||||||
fmt::arg("percentage", percentage_));
|
fmt::arg("percentage", percentage_));
|
||||||
label_.set_markup(str);
|
label_.set_markup(str);
|
||||||
if (tooltipEnabled()) {
|
if (tooltipEnabled()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user