mod(zterm): update dependency and use alignment for top container's text widgets
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 49s
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 49s
This commit is contained in:
@@ -48,7 +48,7 @@ pub fn main() !void {
|
||||
var hcontainer = Layout.HContainer.init(allocator, .{
|
||||
.{
|
||||
Widget.createFrom(header: {
|
||||
var header = Widget.Text.init(&[1]Cell{
|
||||
var header = Widget.Text.init(.left, &[1]Cell{
|
||||
.{ .content = "Yves Biener", .style = .{ .bold = true } },
|
||||
});
|
||||
break :header &header;
|
||||
@@ -57,7 +57,7 @@ pub fn main() !void {
|
||||
},
|
||||
.{
|
||||
Widget.createFrom(name: {
|
||||
var name = Widget.Text.init(&[1]Cell{
|
||||
var name = Widget.Text.init(.center, &[1]Cell{
|
||||
.{ .content = "File name", .style = .{ .bold = true } },
|
||||
});
|
||||
break :name &name;
|
||||
@@ -66,7 +66,7 @@ pub fn main() !void {
|
||||
},
|
||||
.{
|
||||
Widget.createFrom(contacts: {
|
||||
var contacts = Widget.Text.init(&[1]Cell{
|
||||
var contacts = Widget.Text.init(.right, &[1]Cell{
|
||||
.{ .content = "Contact", .style = .{ .bold = true, .ul_style = .single } },
|
||||
});
|
||||
break :contacts &contacts;
|
||||
|
||||
Reference in New Issue
Block a user