╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │242 - // discussions tab │ │252 + // discuss tab │ │253 { │ │244 - var text_box = try wgt.TextBox.init(allocator, "discussions", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │254 + var text_box = try wgt.TextBox.init(allocator, discuss_tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │255 errdefer text_box.deinit(allocator); │ │256 text_box.getFocus().mode = .all; │ │257 text_box.getFocus().kind = .{ .custom = discussions_link }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │260 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │261 .widget = .{ .text_box = text_box }, │ │262 .rect = null, │ │253 - .min_size = .{ .width = "discussions".len + 2, .height = null }, │ │263 + .min_size = .{ .width = discuss_tab_label.len + 2, .height = null },│ │264 }); │ │265 } │ │266 │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │267 // events │ │268 { │ │259 - var text_box = try wgt.TextBox.init(allocator, "events", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │269 + var text_box = try wgt.TextBox.init(allocator, events_tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │270 errdefer text_box.deinit(allocator); │ │271 text_box.getFocus().mode = .all; │ │272 text_box.getFocus().kind = .{ .custom = events_link }; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────╮ │275 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │276 .widget = .{ .text_box = text_box }, │ │277 .rect = null, │ │268 - .min_size = .{ .width = "events".len + 2, .height = null }, │ │278 + .min_size = .{ .width = events_tab_label.len + 2, .height = null },│ │279 }); │ │280 } │ │281 │ ╰────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │294 // settings tab. settings are account preferences, so it needs a login │ │295 // (which also rules out local mode, which has no accounts). │ │296 if (session.data.user_id != null) { │ │287 - var text_box = try wgt.TextBox.init(allocator, "settings", .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none }); │ │297 + var text_box = try wgt.TextBox.init(allocator, settings_tab_label, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │298 errdefer text_box.deinit(allocator); │ │299 text_box.getFocus().mode = .all; │ │300 text_box.getFocus().kind = .{ .custom = settings_link }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │303 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │304 .widget = .{ .text_box = text_box }, │ │305 .rect = null, │ │296 - .min_size = .{ .width = "settings".len + 2, .height = null }, │ │306 + .min_size = .{ .width = settings_tab_label.len + 2, .height = null },│ │307 }); │ │308 } │ │309 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯