╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 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; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯