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

This commit is contained in:
2024-11-16 18:23:41 +01:00
parent 36a4e16535
commit 0bcdc72674
2 changed files with 5 additions and 5 deletions

View File

@@ -40,8 +40,8 @@
.hash = "122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40",
},
.zterm = .{
.url = "git+https://gitea.yves-biener.de/yves-biener/zterm#aeac4bdc83ffbaa20e7def7fcc3d2a7d25d80bb7",
.hash = "1220bed707afded28b20971d960bb7053ed4fc99b9f146be2850838c301b3acbbeae",
.url = "git+https://gitea.yves-biener.de/yves-biener/zterm#7c9038fbda2daea0a99d97a5e57a906295fb7c0a",
.hash = "122092a7e98777d1fae535b9e59bb0e4eef0107a1772b2ccb3f7d13e153c5eec0dd3",
},
},
.paths = .{

View File

@@ -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;