diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-02 00:50:26 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-02 00:50:26 +0200 |
| commit | fa766deaf43fd8bcd3e264d2bb9199f854036a8d (patch) | |
| tree | 1b81035718ecf88c2766333e33e64400be8d5a5a | |
| parent | e4558e9ba0e78744c91d9efe356417c63da0095f (diff) | |
| download | jancity-fa766deaf43fd8bcd3e264d2bb9199f854036a8d.tar.gz | |
button.c: h/v-center child label by default
| -rw-r--r-- | src/gui/src/button.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/src/button.c b/src/gui/src/button.c index 580f36a..44aeac6 100644 --- a/src/gui/src/button.c +++ b/src/gui/src/button.c @@ -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); } |
