simple style import with a subset of css

This commit is contained in:
Alessandro Mauri 2025-07-04 11:17:42 +02:00
parent a390a8908c
commit 9fc1d90455
4 changed files with 430 additions and 21 deletions

View file

@ -113,6 +113,15 @@ fn int main(String[] args)
ren.create_pipeline("UGUI_PIPELINE_RECT", RECT);
// TESTING CSS
String stylesheet = `
ciao {
margin: 12 24px 12mm 3;
brcolor: #ffff00ff;
radius: 10;
}`;
io::printfn("imported %d styles", ui.import_style_from_string(stylesheet));
isz frame;
double fps;
bool toggle = true;