summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2024-08-29 02:59:19 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2024-08-29 02:59:19 +0330
commit555c98cb9bfc95a05a956b1be10cd2fea4afb677 (patch)
treeff24ae681da5a95fa8a4d819d18981038ab5cdfd /src/main.c
parent7f7ced3f7f61d6cd31a43c5d03d606879295d624 (diff)
made tui_make_widget_array needless to determining size
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
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),