Merge pull request #3311 from AtomToast/master

add format-icons to river/layout
This commit is contained in:
Alexis Rouillard
2026-07-04 01:09:58 +02:00
committed by GitHub
3 changed files with 35 additions and 6 deletions
+3 -1
View File
@@ -151,7 +151,9 @@ void Layout::handle_name(const char* name) {
}
label_.get_style_context()->add_class(name);
label_.set_markup(fmt::format(fmt::runtime(format_), Glib::Markup::escape_text(name).raw()));
label_.set_markup(fmt::format(fmt::runtime(format_),
fmt::arg("layout", Glib::Markup::escape_text(name).raw()),
fmt::arg("icon", getIcon(0, name))));
label_.show();
}
name_ = name;