Move UI definition to separate directory
This commit is contained in:
parent
7bdbcb80b6
commit
ad3dd4ace2
2 changed files with 4 additions and 2 deletions
3
main.c
3
main.c
|
@ -7,7 +7,8 @@
|
||||||
#define CLAY_IMPLEMENTATION
|
#define CLAY_IMPLEMENTATION
|
||||||
#include "clay/clay.h"
|
#include "clay/clay.h"
|
||||||
#include "clay/clay_renderer_SDL3.c"
|
#include "clay/clay_renderer_SDL3.c"
|
||||||
#include "clay/clay_video_demo.c"
|
|
||||||
|
#include "ui/clay_video_demo.c"
|
||||||
|
|
||||||
#include <flecs.h>
|
#include <flecs.h>
|
||||||
|
|
||||||
|
|
|
@ -242,7 +242,8 @@ Clay_RenderCommandArray ClayVideoDemo_CreateLayout(ClayVideoDemo_Data *data) {
|
||||||
.childGap = 16,
|
.childGap = 16,
|
||||||
.padding = CLAY_PADDING_ALL(16),
|
.padding = CLAY_PADDING_ALL(16),
|
||||||
.sizing = layoutExpand
|
.sizing = layoutExpand
|
||||||
}
|
},
|
||||||
|
.cornerRadius = CLAY_CORNER_RADIUS(8)
|
||||||
}) {
|
}) {
|
||||||
Document selectedDocument = documents.documents[data->selectedDocumentIndex];
|
Document selectedDocument = documents.documents[data->selectedDocumentIndex];
|
||||||
CLAY_TEXT(selectedDocument.title, CLAY_TEXT_CONFIG({
|
CLAY_TEXT(selectedDocument.title, CLAY_TEXT_CONFIG({
|
Loading…
Reference in a new issue