From 412c8968057bac2e7df1a2bd47b6124cc25f21a7 Mon Sep 17 00:00:00 2001 From: A404M Date: Wed, 28 Aug 2024 12:48:10 +0330 Subject: some small changes and clean up --- src/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main.c') 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 #include +#include 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); } -- cgit v1.2.3