mod(container/border): change default configuration

This commit is contained in:
2025-02-08 13:52:01 +01:00
parent 29ae75adf5
commit c72d76470a
2 changed files with 10 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ pub fn main() !void {
.border = .{
.color = .blue,
.corners = .rounded,
.sides = .all(),
.separator = .{ .enabled = false },
},
.layout = .{
@@ -36,14 +37,12 @@ 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 },
}));
try container.append(try App.Container.init(allocator, .{
.border = .{ .color = .light_blue, .corners = .squared },
.rectangle = .{ .fill = .blue },
}));
defer container.deinit();