╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │79 const text = try std.fmt.bufPrint(&text_buf, "{s}/", .{data.owner_name}); │ │80 const link = try std.fmt.allocPrint(aa, "a:/user/{s}", .{data.owner_name}); │ │81 │ │82 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, text, .{ .border_style = .hidden, .wrap_kind = .none });│ │82 + var text_box = try wgt.TextBox.init(allocator, text, .{ .border_style = .hidden, .wrap_kind = .none }); │ │83 errdefer text_box.deinit(allocator); │ │84 text_box.getFocus().focusable = true; │ │85 text_box.getFocus().kind = .{ .custom = link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │112 │ │113 // spacer │ │114 { │ │115 - var text = try wgt.Text(ui.Widget).init(allocator, " "); │ │115 + var text = try wgt.Text.init(allocator, " "); │ │116 errdefer text.deinit(allocator); │ │117 try tabs_box.children.put(allocator, text.getFocus().id, .{│ │118 .widget = .{ .text = text }, │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │157 │ │158 // files tab │ │159 { │ │160 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "files", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none, .bottom_label = bottom_label });│ │160 + var text_box = try wgt.TextBox.init(allocator, "files", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none, .bottom_label = bottom_label }); │ │161 errdefer text_box.deinit(allocator); │ │162 text_box.getFocus().focusable = true; │ │163 text_box.getFocus().kind = .{ .custom = files_link }; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │172 │ │173 // commits tab │ │174 { │ │175 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "commits", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none, .bottom_label = bottom_label });│ │175 + var text_box = try wgt.TextBox.init(allocator, "commits", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none, .bottom_label = bottom_label }); │ │176 errdefer text_box.deinit(allocator); │ │177 text_box.getFocus().focusable = true; │ │178 text_box.getFocus().kind = .{ .custom = commits_link }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │187 │ │188 // refs tab │ │189 { │ │190 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "refs", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │190 + var text_box = try wgt.TextBox.init(allocator, "refs", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │191 errdefer text_box.deinit(allocator); │ │192 text_box.getFocus().focusable = true; │ │193 text_box.getFocus().kind = .{ .custom = refs_link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │202 │ │203 // issues tab │ │204 { │ │205 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "issues", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │205 + var text_box = try wgt.TextBox.init(allocator, "issues", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │206 errdefer text_box.deinit(allocator); │ │207 text_box.getFocus().focusable = true; │ │208 text_box.getFocus().kind = .{ .custom = issues_link }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │217 │ │218 // patches tab │ │219 { │ │220 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "patches", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │220 + var text_box = try wgt.TextBox.init(allocator, "patches", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │221 errdefer text_box.deinit(allocator); │ │222 text_box.getFocus().focusable = true; │ │223 text_box.getFocus().kind = .{ .custom = patches_link }; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │232 │ │233 // discussions tab │ │234 { │ │235 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "discussions", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │235 + var text_box = try wgt.TextBox.init(allocator, "discussions", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │236 errdefer text_box.deinit(allocator); │ │237 text_box.getFocus().focusable = true; │ │238 text_box.getFocus().kind = .{ .custom = discussions_link }; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │247 │ │248 // events │ │249 { │ │250 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "events", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │250 + var text_box = try wgt.TextBox.init(allocator, "events", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │251 errdefer text_box.deinit(allocator); │ │252 text_box.getFocus().focusable = true; │ │253 text_box.getFocus().kind = .{ .custom = events_link }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │275 // settings tab. settings are account preferences, so it needs a login │ │276 // (which also rules out local mode, which has no accounts). │ │277 if (session.data.user_id != null) { │ │278 - var text_box = try wgt.TextBox(ui.Widget).init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │278 + var text_box = try wgt.TextBox.init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │279 errdefer text_box.deinit(allocator); │ │280 text_box.getFocus().focusable = true; │ │281 text_box.getFocus().kind = .{ .custom = settings_link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯