From ad3dd4ace26143d35c96a5d930680029a2925711 Mon Sep 17 00:00:00 2001 From: Lily Rose Date: Sun, 16 Feb 2025 18:06:47 +1100 Subject: [PATCH] Move UI definition to separate directory --- main.c | 3 ++- {clay => ui}/clay_video_demo.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) rename {clay => ui}/clay_video_demo.c (99%) diff --git a/main.c b/main.c index 0167caf..c9a95c5 100644 --- a/main.c +++ b/main.c @@ -7,7 +7,8 @@ #define CLAY_IMPLEMENTATION #include "clay/clay.h" #include "clay/clay_renderer_SDL3.c" -#include "clay/clay_video_demo.c" + +#include "ui/clay_video_demo.c" #include diff --git a/clay/clay_video_demo.c b/ui/clay_video_demo.c similarity index 99% rename from clay/clay_video_demo.c rename to ui/clay_video_demo.c index 306fc87..29919c6 100644 --- a/clay/clay_video_demo.c +++ b/ui/clay_video_demo.c @@ -242,7 +242,8 @@ Clay_RenderCommandArray ClayVideoDemo_CreateLayout(ClayVideoDemo_Data *data) { .childGap = 16, .padding = CLAY_PADDING_ALL(16), .sizing = layoutExpand - } + }, + .cornerRadius = CLAY_CORNER_RADIUS(8) }) { Document selectedDocument = documents.documents[data->selectedDocumentIndex]; CLAY_TEXT(selectedDocument.title, CLAY_TEXT_CONFIG({