feat: cleaned up and created 'ceramic/'
This commit is contained in:
parent
2d669e6411
commit
f32494a29f
12 changed files with 265 additions and 195 deletions
|
|
@ -1,24 +1,13 @@
|
|||
#include "application.h"
|
||||
#include "style.h"
|
||||
#include "elements.h"
|
||||
#include "ceramic/style.h"
|
||||
#include "ceramic/elements.h"
|
||||
#include <SDL3/SDL.h>
|
||||
#include <clay/clay.h>
|
||||
|
||||
namespace application {
|
||||
static void SampleHeader() {
|
||||
elements::Header(CLAY_STRING("Left Panel"), 2, {
|
||||
.textColor = style::color::white
|
||||
});
|
||||
}
|
||||
|
||||
Clay_RenderCommandArray RenderApplication() {
|
||||
Clay_BeginLayout();
|
||||
CLAY(CLAY_ID("OuterContainer"), style::Window()) {
|
||||
CLAY_AUTO_ID(style::PanelContainer(0, {
|
||||
.layout = { .sizing = { CLAY_SIZING_PERCENT(0.15), CLAY_SIZING_GROW() } }
|
||||
})) {
|
||||
SampleHeader();
|
||||
}
|
||||
}
|
||||
return Clay_EndLayout();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue