╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ────────╮ │src/ui/widget.zig│ ╰─────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1882 - var selector_box = try wgt.TextBox.init(allocator, choice.selector, .{ .border_style = .hidden, .round_corners = true, .wrap_kind = .none }); │ │1882 + var selector_box = try wgt.TextBox.init(allocator, choice.selector, .{ .border = .hidden, .round_corners = true, .wrap_kind = .none }); │ │1883 errdefer selector_box.deinit(allocator); │ │1884 selector_box.getFocus().mode = .all; │ │1885 try box.children.put(allocator, selector_box.getFocus().id, .{ .widget = .{ .text_box = selector_box }, .rect = null, .min_size = .{ .width = choice.selector.len + 2, .height = 3 } });│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────╮ │1886 }; │ │1887 │ │1888 var text_input = try wgt.TextInput.init(allocator, .{ │ │1889 - .border_style = .single, │ │1889 + .border = .single, │ │1890 .round_corners = true, │ │1891 - .label = choices[initial].label, │ │1892 - .bottom_label = choices[initial].bottom_label, │ │1891 + .top_label = .{ .text = choices[initial].label }, │ │1892 + .bottom_label = .{ .text = choices[initial].bottom_label },│ │1893 .read_only = true, │ │1894 .render_content = session.is_terminal, │ │1895 .visible_width = null, │ ╰─────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │1976 │ │1977 const focused = root_focus.grandchild_id == self.textInput().getFocus().id;│ │1978 for (0..self.choices.len) |i| { │ │1979 - self.selector(i).options.border_style = if (i == self.selected) │ │1979 + self.selector(i).options.border = if (i == self.selected) │ │1980 (if (focused) .double else .single) │ │1981 else │ │1982 .hidden; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────╮ │1983 } │ │1984 } │ │1985 - self.textInput().options.border_style = .single; │ │1985 + self.textInput().options.border = .single; │ │1986 self.textInput().cursor = 0; │ │1987 self.textInput().scroll_offset = 0; │ │1988 try self.box.build(allocator, constraint, root_focus);│ ╰────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────╮ │2016 self.selected = selected; │ │2017 const choice = self.choices[selected]; │ │2018 const text_input = self.textInput(); │ │2019 - text_input.options.label = choice.label; │ │2020 - text_input.options.bottom_label = choice.bottom_label; │ │2019 + text_input.options.top_label.text = choice.label; │ │2020 + text_input.options.bottom_label.text = choice.bottom_label;│ │2021 try text_input.setContent(allocator, choice.text); │ │2022 } │ │2023 │ ╰─────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │434 const search_index: usize = 0; │ │435 │ │436 pub fn init(allocator: std.mem.Allocator, session: *ui.Session, search: ?[]const u8) !Header { │ │437 - var box = try wgt.Box(Widget).init(allocator, .{ .border_style = null, .direction = .horiz });│ │437 + var box = try wgt.Box(Widget).init(allocator, .{ .border = null, .direction = .horiz }); │ │438 errdefer box.deinit(allocator); │ │439 │ │440 { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │448 } │ │449 │ │450 pub fn addTab(self: *Header, allocator: std.mem.Allocator, label: []const u8, link: []const u8, view_index: usize) !void { │ │451 - var text_box = try wgt.TextBox.init(allocator, label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none });│ │451 + var text_box = try wgt.TextBox.init(allocator, label, .{ .border = .single, .round_corners = true, .wrap_kind = .none }); │ │452 errdefer text_box.deinit(allocator); │ │453 text_box.getFocus().mode = .all; │ │454 text_box.getFocus().kind = .{ .custom = link }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │586 const tool_row_index: usize = 0; │ │587 │ │588 pub fn init(allocator: std.mem.Allocator, data: *const Data, session: *ui.Session, entry: ?Entry, options: Options) !This { │ │589 - var content = try wgt.Box(Widget).init(allocator, .{ .border_style = null, .direction = .vert }); │ │589 + var content = try wgt.Box(Widget).init(allocator, .{ .border = null, .direction = .vert }); │ │590 errdefer content.deinit(allocator); │ │591 var detail_scroll = try wgt.Scroll(Widget).init(allocator, .{ .box = content }, .{ .direction = .vert, .web_native = !session.is_terminal, .fill = true });│ │592 errdefer detail_scroll.deinit(allocator); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │704 } │ │705 │ │706 fn addToolButton(allocator: std.mem.Allocator, row: *wgt.Box(Widget), label: []const u8, bottom_label: []const u8, action: []const u8) !void { │ │707 - var button = try wgt.TextBox.init(allocator, label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none, .bottom_label = bottom_label }); │ │707 + var button = try wgt.TextBox.init(allocator, label, .{ .border = .single, .round_corners = true, .wrap_kind = .none, .bottom_label = .{ .text = bottom_label } });│ │708 errdefer button.deinit(allocator); │ │709 button.getFocus().mode = .all; │ │710 button.getFocus().kind = .{ .custom = action }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │724 self.author_id = null; │ │725 │ │726 { │ │727 - var row = try wgt.Box(Widget).init(allocator, .{ .border_style = null, .direction = .horiz }); │ │727 + var row = try wgt.Box(Widget).init(allocator, .{ .border = null, .direction = .horiz }); │ │728 errdefer row.deinit(allocator); │ │729 try inner_box.children.put(allocator, row.getFocus().id, .{ .widget = .{ .box = row }, .rect = null, .min_size = null });│ │730 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯