╭ changed ──────────────╮ │src/ui/Repo/Comment.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │152 const gap_index: usize = 2; │ │153 │ │154 pub fn init(allocator: std.mem.Allocator, session: *ui.Session, identity: []const u8, thread_kind: evt.EventKind, can_reply: bool, entry: CommentWithId) !Item {│ │155 - var box = try wgt.Box(ui.Widget).init(allocator, .{ .border_style = null, .direction = .vert }); │ │155 + var box = try wgt.Box(ui.Widget).init(allocator, .{ .border = null, .direction = .vert }); │ │156 errdefer box.deinit(allocator); │ │157 │ │158 { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │159 - var bar = try wgt.Box(ui.Widget).init(allocator, .{ .border_style = null, .direction = .horiz });│ │159 + var bar = try wgt.Box(ui.Widget).init(allocator, .{ .border = null, .direction = .horiz }); │ │160 errdefer bar.deinit(allocator); │ │161 │ │162 // the author sits on the left and the buttons on the right │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │186 .email, .user_name => |text| text, │ │187 } else ""; │ │188 var parent = try wgt.TextBox.init(allocator, parent_text, .{│ │189 - .border_style = .single, │ │189 + .border = .single, │ │190 .round_corners = true, │ │191 .wrap_kind = .none, │ │192 - .label = " replying to ", │ │192 + .top_label = .{ .text = " replying to " }, │ │193 }); │ │194 errdefer parent.deinit(allocator); │ │195 parent.getFocus().mode = .all; │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │304 pub fn appendCount(allocator: std.mem.Allocator, box: *wgt.Box(ui.Widget), count: usize, singular: []const u8, plural: []const u8) !void {│ │305 var text_buf: [64]u8 = undefined; │ │306 const text = try std.fmt.bufPrint(&text_buf, "{d} {s}", .{ count, if (count == 1) singular else plural }); │ │307 - var count_box = try wgt.TextBox.init(allocator, text, .{ .border_style = .hidden, .wrap_kind = .none }); │ │307 + var count_box = try wgt.TextBox.init(allocator, text, .{ .border = .hidden, .wrap_kind = .none }); │ │308 errdefer count_box.deinit(allocator); │ │309 try box.children.put(allocator, count_box.getFocus().id, .{ .widget = .{ .text_box = count_box }, .rect = null, .min_size = null }); │ │310 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │313 const has_prev = window.start > 0; │ │314 const has_more = window.start < window.count and window.count - window.start > page_size; │ │315 if (!has_prev and !has_more) return; │ │316 - var row = try wgt.Box(ui.Widget).init(allocator, .{ .border_style = null, .direction = .horiz });│ │316 + var row = try wgt.Box(ui.Widget).init(allocator, .{ .border = null, .direction = .horiz }); │ │317 errdefer row.deinit(allocator); │ │318 if (has_prev) { │ │319 const start = window.start -| page_size; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │353 } │ │354 │ │355 pub fn linkBox(allocator: std.mem.Allocator, session: *ui.Session, text: []const u8, route: ui.RoutablePage) !wgt.TextBox { │ │356 - var box = try wgt.TextBox.init(allocator, text, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none }); │ │356 + var box = try wgt.TextBox.init(allocator, text, .{ .border = .single, .round_corners = true, .wrap_kind = .none }); │ │357 errdefer box.deinit(allocator); │ │358 box.getFocus().mode = .all; │ │359 box.getFocus().kind = .{ .custom = try session.page_arena.allocator().print("a:{s}", .{try route.toUrl(session.page_arena)}) };│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯