feat(Label): use set_markup

This commit is contained in:
Alexis
2018-11-21 20:49:09 +01:00
parent b3559328f1
commit bd62c4cbc5
9 changed files with 9 additions and 9 deletions

View File

@ -18,7 +18,7 @@ auto waybar::modules::Cpu::update() -> void
auto cpu_load = getCpuLoad();
auto [cpu_usage, tooltip] = getCpuUsage();
label_.set_tooltip_text(tooltip);
label_.set_text(fmt::format(format_,
label_.set_markup(fmt::format(format_,
fmt::arg("load", cpu_load), fmt::arg("usage", cpu_usage)));
} catch (const std::exception& e) {
std::cerr << e.what() << std::endl;