mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(Label): use set_markup
This commit is contained in:
@ -136,7 +136,7 @@ auto waybar::modules::Battery::update() -> void
|
||||
} else {
|
||||
event_box_.show();
|
||||
label_.set_name("battery");
|
||||
label_.set_text(fmt::format(format, fmt::arg("capacity", capacity),
|
||||
label_.set_markup(fmt::format(format, fmt::arg("capacity", capacity),
|
||||
fmt::arg("icon", getIcon(capacity))));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user