Кнопка для добавления случайных фигур

This commit is contained in:
2026-02-26 00:03:22 +03:00
parent b6e14cd74d
commit 563c2a7535
2 changed files with 9 additions and 0 deletions

View File

@@ -101,6 +101,9 @@ pub fn leftPanel(ctx: *WindowContext) void {
canvas.requestRedraw();
}
}
if (dvui.button(@src(), "Add random shapes", .{}, .{})) {
canvas.addRandomShapes() catch {};
}
} else {
dvui.label(@src(), "No document", .{}, .{});
}