From b315720fcd6ad9af0f0d9c023e81ebf34b1be6a4 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Sat, 2 Mar 2024 21:07:42 +0800 Subject: ui: no more titlebar --- src/ui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index f3d006e..6479cc9 100644 --- a/src/ui.c +++ b/src/ui.c @@ -19,12 +19,12 @@ static nk_size pct; static bool show_app_about; static nfdchar_t *outPath; -static struct nk_rect about_dialog_bounds = {128, 64, 768, 512}; +static struct nk_rect about_dialog_bounds = {128, -16, 768, 696}; void load_ui(struct ui_struct *ui) { static char text[USHRT_MAX], box_buffer[UINT16_MAX], status_string[UCHAR_MAX]; float logGroup_height = - nk_window_get_height(ui->ctx) - 35 - 85 - 45 - 50 - 35 - 80; + nk_window_get_height(ui->ctx) - 85 - 45 - 50 - 35 - 80; ui->logger->extend_box = (logGroup_height - 15) < ((ui->logger->box_lines + 1) * (ui->logger->font_height + 2)); @@ -81,7 +81,7 @@ void load_ui(struct ui_struct *ui) { * What's worse, it's related w/ font size. Jeez. */ about_dialog_bounds.x -= 6; - about_dialog_bounds.y -= 85; + about_dialog_bounds.y -= 45; // DEBUG_PRINT("w: %f, h: %f\n", nk_window_get_bounds(ui->ctx).x, // nk_window_get_bounds(ui->ctx).y); -- cgit v1.2.3