summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2024-08-29 17:50:14 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2024-08-29 17:50:14 +0330
commit2199503244bef3a5e89e49a9588c7b260f097baf (patch)
tree9aa637912de30f408be5ce666a5b6a07363a749f /src/main.c
parent779c9d9d0fc2c20ec6a4e622a2ce5d6c0810c3e0 (diff)
added min width and height
fixed text widget bug
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index da5241e..b77e944 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);