summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2024-08-28 12:48:10 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2024-08-28 12:51:53 +0330
commit412c8968057bac2e7df1a2bd47b6124cc25f21a7 (patch)
tree60237e47a32c9255a2131535500eb10a5f719776 /src/main.c
parent4cc1b51a5e532f14ece5b11c66cd56091eb97a97 (diff)
some small changes and clean up
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index b7a97d1..ace9802 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,6 +1,6 @@
#include "ui/tui.h"
-#include <unistd.h>
#include <stdio.h>
+#include <unistd.h>
void on_button_click(MOUSE_ACTION mouse_action) {
printf("hello");
@@ -11,12 +11,17 @@ WIDGET *ui_build(TUI *tui) {
return tui_make_box(
-1, -1,
tui_make_row(tui_make_widget_array(
- 2,
+ 3,
tui_make_box(
8, 2,
tui_make_button(tui_make_text("Hello, World!", COLOR_BLUE),
on_button_click),
COLOR_YELLOW),
+ tui_make_box(
+ 8, 2,
+ tui_make_button(tui_make_text("Hello, World!", COLOR_RED),
+ on_button_click),
+ COLOR_BLUE),
tui_make_text("Hello, World!", COLOR_RED), 1)),
COLOR_MAGENTA);
}