Revert DJUI button height change

This commit is contained in:
Agent X 2023-11-16 17:43:57 -05:00
parent 2232c52031
commit 1cb69df30f

View file

@ -51,7 +51,7 @@ struct DjuiButton* djui_button_create(struct DjuiBase* parent, const char* messa
struct DjuiBase* base = &button->base;
djui_base_init(parent, base, NULL, djui_button_destroy);
djui_base_set_size(base, 200, 50);
djui_base_set_size(base, 200, gDjuiThemes[configDjuiTheme]->panels.center ? 50 : 64);
djui_base_set_border_width(base, 2);
djui_interactable_create(base, djui_button_update_style);
button->style = 0;
@ -72,7 +72,7 @@ struct DjuiButton* djui_button_create(struct DjuiBase* parent, const char* messa
button->text = text;
djui_base_set_size_type(base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
djui_base_set_size(base, 1.0f, 50);
djui_base_set_size(base, 1.0f, gDjuiThemes[configDjuiTheme]->panels.center ? 50 : 64);
djui_interactable_hook_click(base, on_click);
button->style = style;
djui_button_update_style(base);