add(container/rectangle): add content creation

This commit is contained in:
yves-biener committed 2025-02-07 17:43:16 +01:00
1 parent 11531e9d4a
commit d326deac97
4 files changed
+14 -8

No files matched your search

+2 -1
View File
@@ -27,7 +27,7 @@ pub fn main() !void {
.border = .{
.color = .blue,
.sides = .{
.top = false,
.left = false,
.bottom = false,
},
.corners = .rounded,
@@ -37,6 +37,7 @@ pub fn main() !void {
});
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_blue, .corners = .squared },
.rectangle = .{ .fill = .blue },
}));
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_blue, .corners = .squared },