diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-11-18 11:59:03 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-11-18 11:59:03 +0300 |
| commit | 1f9f2f89b3fe46906f815f7cfc18624279231dbd (patch) | |
| tree | 09f0f6c2ed682daf2eb7d37a5daa9bbc2e18230e /src/ui.c | |
| parent | fc326115fa154bc19f3f10d7c2c4e57710ef1e0d (diff) | |
Fix the wave screen
Diffstat (limited to 'src/ui.c')
| -rw-r--r-- | src/ui.c | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -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) { |
