mod():
This commit is contained in:
@@ -31,20 +31,33 @@ pub fn main() !void {
|
||||
.separator = .{ .enabled = false },
|
||||
},
|
||||
.layout = .{
|
||||
.gap = 1,
|
||||
.gap = 0,
|
||||
.padding = .all(5),
|
||||
.direction = .horizontal,
|
||||
},
|
||||
});
|
||||
try container.append(try App.Container.init(allocator, .{
|
||||
var box = try App.Container.init(allocator, .{
|
||||
.rectangle = .{ .fill = .blue },
|
||||
.layout = .{
|
||||
.gap = 1,
|
||||
.direction = .vertical,
|
||||
.padding = .vertical(1),
|
||||
.sizing = .{
|
||||
.width = .{ .fixed = 70 },
|
||||
.height = .{ .fixed = 18 },
|
||||
// .width = .{ .fixed = 700 },
|
||||
// .height = .{ .fixed = 180 },
|
||||
},
|
||||
},
|
||||
});
|
||||
try box.append(try App.Container.init(allocator, .{
|
||||
.rectangle = .{ .fill = .light_green },
|
||||
}));
|
||||
try box.append(try App.Container.init(allocator, .{
|
||||
.rectangle = .{ .fill = .light_green },
|
||||
}));
|
||||
try box.append(try App.Container.init(allocator, .{
|
||||
.rectangle = .{ .fill = .light_green },
|
||||
}));
|
||||
try container.append(box);
|
||||
try container.append(try App.Container.init(allocator, .{
|
||||
.border = .{ .color = .light_blue, .corners = .squared },
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user