button.c: h/v-center child label by default

This commit is contained in:
Xavier Del Campo Romero 2022-07-02 00:50:26 +02:00
parent 033ed5fb94
commit 04b9219ee5
1 changed files with 2 additions and 0 deletions

View File

@ -175,5 +175,7 @@ void gui_button_init(struct gui_button *const b)
};
gui_label_init(&b->label);
b->label.common.hcentered = true;
b->label.common.vcentered = true;
gui_add_child(&b->common, &b->label.common);
}