From 1f9f2f89b3fe46906f815f7cfc18624279231dbd Mon Sep 17 00:00:00 2001 From: spl3g Date: Tue, 18 Nov 2025 11:59:03 +0300 Subject: Fix the wave screen --- src/ui.c | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 10f4c64..88f9670 100644 --- a/src/ui.c +++ b/src/ui.c @@ -298,20 +298,25 @@ void draw_screen(UIData *ui_data) { wave->wave_screen = (WaveScreenData){ .point_buffer = ui_data->wave_buffer, .buffer_len = ui_data->wave_buffer_size, + .thickness = 2, }; - CLAY(CLAY_ID("wave_screen"), { - .layout = { - .sizing = {CLAY_SIZING_FIXED(200 * ui_data->scale), CLAY_SIZING_FIXED(100 * ui_data->scale)}, - }, - .backgroundColor = COLOR_FG, - .border = { .width = {1, 1, 1, 1, 0}, .color = COLOR_FG }, - .custom = { - .customData = wave, - }, + CLAY(CLAY_ID("wave_border"), { + .border = { .width = {1, 1, 1, 1, 0}, .color = COLOR_FG }, }) { - - }; + CLAY(CLAY_ID("wave_screen"), { + .layout = { + .sizing = {CLAY_SIZING_FIXED(200 * ui_data->scale), CLAY_SIZING_FIXED(100 * ui_data->scale)}, + }, + .backgroundColor = COLOR_FG, + .custom = { + .customData = wave, + }, + .clip = { + .horizontal = true, + }, + }); + } } void draw_panel(UIData *ui_data) { -- cgit v1.2.3