Move UI definition to separate directory

This commit is contained in:
Lily Rose 2025-02-16 18:06:47 +11:00
parent 7bdbcb80b6
commit ad3dd4ace2
2 changed files with 4 additions and 2 deletions

3
main.c
View file

@ -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 <flecs.h>

View file

@ -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({