╭ changed ────╮ │build.zig.zon│ ╰─────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 3 .version = "0.0.0", │ │ 4 .dependencies = .{ │ │ 5 .xit = .{ │ │ 6 - .url = "git+https://github.com/xit-vcs/xit#f835499d7d5e5c0f60d33d60325d074d650a4726",│ │ 7 - .hash = "xit-0.0.0-Ub3nDAhyTwEwgDsTE9GFbSolbs15C6nJbjGefXvdxhjo", │ │ 6 + .url = "git+https://github.com/xit-vcs/xit#eb7e39bba16d9aa79e3b91494d17ad9f9a39c01b",│ │ 7 + .hash = "xit-0.0.0-Ub3nDLx1TwG9v3VNMlYx2SMNlDhNwR3ZpDk_3IXEBS_H", │ │ 8 }, │ │ 9 }, │ │10 .paths = .{ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 99 │ │100 pub fn init(allocator: std.mem.Allocator) !WidgetList { │ │101 var self = blk: { │ │102 - var inner_box = try wgt.Box(Widget).init(allocator, null, .vert); │ │102 + var inner_box = try wgt.Box(Widget).init(allocator, .{ .border_style = null, .direction = .vert });│ │103 errdefer inner_box.deinit(); │ │104 │ │105 var scroll = try wgt.Scroll(Widget).init(allocator, .{ .box = inner_box }, .vert); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │115 const inner_box = &self.scroll.child.box; │ │116 │ │117 { │ │118 - var text_box = try wgt.TextBox(Widget).init(allocator, "this is a TextBox", .single, .none); │ │118 + var text_box = try wgt.TextBox(Widget).init(allocator, "this is a TextBox", .{ .border_style = .single, .wrap_kind = .none }); │ │119 errdefer text_box.deinit(); │ │120 text_box.getFocus().focusable = true; │ │121 try inner_box.children.put(allocator, text_box.getFocus().id, .{ .widget = .{ .text_box = text_box }, .rect = null, .min_size = null });│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │122 } │ │123 │ │124 { │ │125 - var text_box = try wgt.TextBox(Widget).init(allocator, "this is a\nmulti-line TextBox", .single, .none); │ │125 + var text_box = try wgt.TextBox(Widget).init(allocator, "this is a\nmulti-line TextBox", .{ .border_style = .single, .wrap_kind = .none });│ │126 errdefer text_box.deinit(); │ │127 text_box.getFocus().focusable = true; │ │128 try inner_box.children.put(allocator, text_box.getFocus().id, .{ .widget = .{ .text_box = text_box }, .rect = null, .min_size = null }); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │143 self.clearGrid(); │ │144 const children = &self.scroll.child.box.children; │ │145 for (children.keys(), children.values()) |id, *commit| { │ │146 - commit.widget.text_box.border_style = if (self.getFocus().child_id == id) │ │146 + commit.widget.text_box.options.border_style = if (self.getFocus().child_id == id)│ │147 (if (root_focus.grandchild_id == id) .double else .single) │ │148 else │ │149 .hidden; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯