fix: use pango markup for consistent formatting in format and tooltip-format

This commit is contained in:
Prakhar Chhalotre
2026-02-13 02:23:16 +05:30
parent 03a77c592b
commit 3e7976c8eb
25 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -25,9 +25,9 @@ auto waybar::modules::Clock::update() -> void {
if (config_["tooltip-format"].isString()) {
auto tooltip_format = config_["tooltip-format"].asString();
auto tooltip_text = fmt::format(fmt::runtime(tooltip_format), localtime);
label_.set_tooltip_text(tooltip_text);
label_.set_tooltip_markup(tooltip_text);
} else {
label_.set_tooltip_text(text);
label_.set_tooltip_markup(text);
}
}
// Call parent update