Add header theme type variations to labels

This commit is contained in:
kobewi
2021-07-08 15:29:15 +02:00
parent b44b277f6f
commit f4b361dd15
18 changed files with 94 additions and 14 deletions

View File

@@ -349,6 +349,7 @@ void BoxContainer::_bind_methods() {
MarginContainer *VBoxContainer::add_margin_child(const String &p_label, Control *p_control, bool p_expand) {
Label *l = memnew(Label);
l->set_theme_type_variation("HeaderSmall");
l->set_text(p_label);
add_child(l);
MarginContainer *mc = memnew(MarginContainer);