From 555c98cb9bfc95a05a956b1be10cd2fea4afb677 Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 29 Aug 2024 02:59:19 +0330 Subject: made tui_make_widget_array needless to determining size --- src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c1a2563..da5241e 100644 --- a/src/main.c +++ b/src/main.c @@ -14,13 +14,13 @@ WIDGET *ui_build(TUI *tui) { return tui_make_box( -1, -1, tui_make_column(tui_make_widget_array( - 2, tui_make_box(0, 12, NULL, COLOR_NO_COLOR), + tui_make_box(0, 12, NULL, COLOR_NO_COLOR), tui_make_row(tui_make_widget_array( - 2, tui_make_box(50, 0, NULL, COLOR_NO_COLOR), + tui_make_box(50, 0, NULL, COLOR_NO_COLOR), tui_make_box( 20, 3, tui_make_column(tui_make_widget_array( - 2, tui_make_text("This is the second page", COLOR_BLUE), + tui_make_text("This is the second page", COLOR_BLUE), tui_make_button(tui_make_text(" Back", COLOR_RED), on_button_click))), @@ -30,9 +30,9 @@ WIDGET *ui_build(TUI *tui) { return tui_make_box( -1, -1, tui_make_column(tui_make_widget_array( - 2, tui_make_box(0, 12, NULL, COLOR_NO_COLOR), + tui_make_box(0, 12, NULL, COLOR_NO_COLOR), tui_make_row(tui_make_widget_array( - 2, tui_make_box(50, 0, NULL, COLOR_NO_COLOR), + tui_make_box(50, 0, NULL, COLOR_NO_COLOR), tui_make_button( tui_make_box(16, 3, tui_make_text("\nClick here", COLOR_BLUE), -- cgit v1.2.3