diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-29 17:50:14 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-29 17:50:14 +0330 |
commit | 2199503244bef3a5e89e49a9588c7b260f097baf (patch) | |
tree | 9aa637912de30f408be5ce666a5b6a07363a749f /src/main.c | |
parent | 779c9d9d0fc2c20ec6a4e622a2ce5d6c0810c3e0 (diff) |
added min width and height
fixed text widget bug
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -23,7 +23,6 @@ WIDGET *ui_build(TUI *tui) { tui_make_text("This is the second page", COLOR_BLUE), tui_make_button(tui_make_text(" Back", COLOR_RED), on_button_click))), - COLOR_WHITE))))), COLOR_MAGENTA); } else { @@ -34,8 +33,8 @@ WIDGET *ui_build(TUI *tui) { tui_make_row(tui_make_widget_array( tui_make_box(50, 0, NULL, COLOR_NO_COLOR), tui_make_button( - tui_make_box(16, 3, - tui_make_text("\nClick here", COLOR_BLUE), + tui_make_box(MIN_WIDTH, MIN_HEIGHT, + tui_make_text("\nClick here\n", COLOR_BLUE), COLOR_WHITE), on_button_click))))), COLOR_MAGENTA); |