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:
@ -36,7 +36,7 @@ auto waybar::modules::sway::Mode::update() -> void
|
||||
label_.hide();
|
||||
} else {
|
||||
label_.set_name("mode");
|
||||
label_.set_text(fmt::format(format_, mode_));
|
||||
label_.set_markup(fmt::format(format_, mode_));
|
||||
label_.set_tooltip_text(mode_);
|
||||
label_.show();
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ void waybar::modules::sway::Window::worker()
|
||||
|
||||
auto waybar::modules::sway::Window::update() -> void
|
||||
{
|
||||
label_.set_text(fmt::format(format_, window_));
|
||||
label_.set_markup(fmt::format(format_, window_));
|
||||
label_.set_tooltip_text(window_);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user