--- a/application/main.c Thu Dec 05 08:40:37 2024 +0100 +++ b/application/main.c Thu Dec 05 16:44:05 2024 +0100 @@ -268,7 +268,15 @@ - UiObject *obj = ui_window("Test", NULL); + UiObject *obj = ui_sidebar_window("Test", NULL); + + ui_sidebar(obj, .margin = 8, .spacing = 8) { + ui_button(obj, .label = "Button 1", .style_class = "flat"); + ui_button(obj, .label = "Button 2", .style_class = "flat"); + ui_button(obj, .label = "Button 3", .style_class = "flat"); + ui_button(obj, .label = "Button 4", .style_class = "flat"); + ui_button(obj, .label = "Button 5", .style_class = "flat"); + } MyDocument *doc = create_doc(); ui_attach_document(obj->ctx, doc);