╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │75 │ │76 // repos tab │ │77 { │ │78 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "repos", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │78 + var text_box = try wgt.TextBox.init(allocator, "repos", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │79 errdefer text_box.deinit(allocator); │ │80 text_box.getFocus().focusable = true; │ │81 text_box.getFocus().kind = .{ .custom = repos_link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │90 │ │91 // users tab │ │92 { │ │93 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "users", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │93 + var text_box = try wgt.TextBox.init(allocator, "users", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │94 errdefer text_box.deinit(allocator); │ │95 text_box.getFocus().focusable = true; │ │96 text_box.getFocus().kind = .{ .custom = users_link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │117 │ │118 // settings tab. settings are account preferences, so it needs a login. │ │119 if (session.data.user_id != null) { │ │120 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │120 + var text_box = try wgt.TextBox.init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │121 errdefer text_box.deinit(allocator); │ │122 text_box.getFocus().focusable = true; │ │123 text_box.getFocus().kind = .{ .custom = settings_link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │146 │ │147 // quit tab │ │148 if (session.is_terminal) { │ │149 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, ui.Quit.tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │149 + var text_box = try wgt.TextBox.init(allocator, ui.Quit.tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │150 errdefer text_box.deinit(allocator); │ │151 text_box.getFocus().focusable = true; │ │152 text_box.getFocus().kind = .{ .custom = ui.Quit.tab_kind }; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │176 self.clearGrid(); │ │177 const box = &self.scroll.child.box; │ │178 for (box.children.keys(), box.children.values()) |id, *child| { │ │179 - const tb: ?*wgt.TextBox(ui.Widget) = switch (child.widget) { │ │179 + const tb: ?*wgt.TextBox = switch (child.widget) { │ │180 .text_box => |*x| x, │ │181 .auth_tab => |*at| blk: { │ │182 // the label tracks login state per frame, so the width must too│ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────╮ │src/ui/Quit.zig│ ╰───────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │31 errdefer box.deinit(allocator); │ │32 │ │33 { │ │34 - var prompt = try wgt.Text(ui.Widget).init(allocator, "are you sure?");│ │34 + var prompt = try wgt.Text.init(allocator, "are you sure?"); │ │35 errdefer prompt.deinit(allocator); │ │36 try box.children.put(allocator, prompt.getFocus().id, .{ │ │37 .widget = .{ .text = prompt }, │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │42 │ │43 var button_id: usize = undefined; │ │44 { │ │45 - var button = try wgt.TextBox(ui.Widget).init(allocator, "quit", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │45 + var button = try wgt.TextBox.init(allocator, "quit", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │46 errdefer button.deinit(allocator); │ │47 button.getFocus().focusable = true; │ │48 button_id = button.getFocus().id; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────────────╮ │src/ui/Repo/Attachment.zig│ ╰──────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │54 var row = try wgt.Box(ui.Widget).init(allocator, .{ .border_style = null, .direction = .horiz });│ │55 errdefer row.deinit(allocator); │ │56 │ │57 - var tb = try wgt.TextBox(ui.Widget).init(allocator, entry.name, .{ │ │57 + var tb = try wgt.TextBox.init(allocator, entry.name, .{ │ │58 .border_style = .single, │ │59 .rounded_corners = true, │ │60 .wrap_kind = .none, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │67 │ │68 if (session.data.is_local or session.data.user_id != null) { │ │69 row.getFocus().kind = .{ .custom = try std.fmt.allocPrint(pa, "form:{s}/attachment:{s}/remove", .{ parent_url, &entry.id }) }; │ │70 - var remove = try wgt.TextBox(ui.Widget).init(allocator, "✕", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │70 + var remove = try wgt.TextBox.init(allocator, "✕", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │71 errdefer remove.deinit(allocator); │ │72 remove.getFocus().focusable = true; │ │73 remove.getFocus().kind = .{ .custom = "submit" }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────────╮ │src/ui/Repo/Comment.zig│ ╰───────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │179 .unknown => "", │ │180 .email, .user_name => |text| text, │ │181 } else ""; │ │182 - var parent = try wgt.TextBox(ui.Widget).init(allocator, parent_text, .{│ │182 + var parent = try wgt.TextBox.init(allocator, parent_text, .{ │ │183 .border_style = .single, │ │184 .rounded_corners = true, │ │185 .wrap_kind = .none, │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯