Merge pull request #1836 from smoak/smoak/wireplumber-icon-support
This commit is contained in:
commit
cea59ddc6c
|
@ -156,8 +156,8 @@ auto waybar::modules::Wireplumber::update() -> void {
|
||||||
label_.get_style_context()->remove_class("muted");
|
label_.get_style_context()->remove_class("muted");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string markup =
|
std::string markup = fmt::format(format, fmt::arg("node_name", node_name_),
|
||||||
fmt::format(format, fmt::arg("node_name", node_name_), fmt::arg("volume", volume_));
|
fmt::arg("volume", volume_), fmt::arg("icon", getIcon(volume_)));
|
||||||
label_.set_markup(markup);
|
label_.set_markup(markup);
|
||||||
|
|
||||||
getState(volume_);
|
getState(volume_);
|
||||||
|
@ -169,7 +169,8 @@ auto waybar::modules::Wireplumber::update() -> void {
|
||||||
|
|
||||||
if (!tooltip_format.empty()) {
|
if (!tooltip_format.empty()) {
|
||||||
label_.set_tooltip_text(fmt::format(tooltip_format, fmt::arg("node_name", node_name_),
|
label_.set_tooltip_text(fmt::format(tooltip_format, fmt::arg("node_name", node_name_),
|
||||||
fmt::arg("volume", volume_)));
|
fmt::arg("volume", volume_),
|
||||||
|
fmt::arg("icon", getIcon(volume_))));
|
||||||
} else {
|
} else {
|
||||||
label_.set_tooltip_text(node_name_);
|
label_.set_tooltip_text(node_name_);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue