diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-28 12:48:10 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-28 12:51:53 +0330 |
commit | 412c8968057bac2e7df1a2bd47b6124cc25f21a7 (patch) | |
tree | 60237e47a32c9255a2131535500eb10a5f719776 /src/main.c | |
parent | 4cc1b51a5e532f14ece5b11c66cd56091eb97a97 (diff) |
some small changes and clean up
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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); } |