╭ changed ─────────────╮ │src/ui/User/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────╮ │53 │ │54 // spacer │ │55 { │ │56 - var text = try wgt.Text(ui.Widget).init(allocator, " ");│ │56 + var text = try wgt.Text.init(allocator, " "); │ │57 errdefer text.deinit(allocator); │ │58 try box.children.put(allocator, text.getFocus().id, .{ │ │59 .widget = .{ .text = text }, │ ╰────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │90 │ │91 // repos tab │ │92 { │ │93 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "repos", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │93 + var text_box = try wgt.TextBox.init(allocator, "repos", .{ .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 = repos_link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │105 │ │106 // forks tab │ │107 { │ │108 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "forks", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │108 + var text_box = try wgt.TextBox.init(allocator, "forks", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │109 errdefer text_box.deinit(allocator); │ │110 text_box.getFocus().focusable = true; │ │111 text_box.getFocus().kind = .{ .custom = forks_link }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │132 │ │133 // settings tab. settings are account preferences, so it needs a login. │ │134 if (session.data.user_id != null) { │ │135 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │135 + var text_box = try wgt.TextBox.init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │136 errdefer text_box.deinit(allocator); │ │137 text_box.getFocus().focusable = true; │ │138 text_box.getFocus().kind = .{ .custom = settings_link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │162 │ │163 // quit tab │ │164 if (session.is_terminal) { │ │165 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, ui.Quit.tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │165 + var text_box = try wgt.TextBox.init(allocator, ui.Quit.tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │166 errdefer text_box.deinit(allocator); │ │167 text_box.getFocus().focusable = true; │ │168 text_box.getFocus().kind = .{ .custom = ui.Quit.tab_kind }; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │193 // only the selected tab shows its border │ │194 const box = &self.scroll.child.box; │ │195 for (box.children.keys(), box.children.values()) |id, *child| { │ │196 - const tb: ?*wgt.TextBox(ui.Widget) = switch (child.widget) { │ │196 + const tb: ?*wgt.TextBox = switch (child.widget) { │ │197 .text_box => |*x| x, │ │198 .auth_tab => |*at| blk: { │ │199 // the label tracks login state per frame, so the width must too│ ╰─────────────────────────────────────────────────────────────────────────────────────────╯