╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────╮ │11 │ │12 const about_tab_label = "about"; │ │13 const users_tab_label = "users"; │ │14 -const settings_tab_label = "settings"; │ │14 const new_repo_tab_label = "new repo"; │ │15 │ │16 pub const AuthTab = @import("./../AuthTab.zig");│ ╰────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │91 const current_tag = std.meta.activeTag(session.data.current_page); │ │92 const about_link = try ui.inPageTabLink(session, .home_about, current_tag == .home_about); │ │93 const users_link = try ui.inPageTabLink(session, .{ .home_users = .{} }, current_tag == .home_users);│ │95 - const settings_link = try ui.inPageTabLink(session, .home_settings, current_tag == .home_settings); │ │94 const new_repo_link = try ui.inPageTabLink(session, .home_new_repo, current_tag == .home_new_repo); │ │95 const auth_link = try ui.inPageTabLink(session, .home_auth, current_tag == .home_auth); │ │96 const current_link: []const u8 = switch (current_tag) { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────╮ │ 97 .home_users => users_link, │ │100 - .home_settings => settings_link,│ │ 98 .home_new_repo => new_repo_link,│ │ 99 .home_auth => auth_link, │ │100 else => about_link, │ ╰─────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────╮ │131 }); │ │132 } │ │133 │ │137 - // spacer pushes settings, new repo and auth to the right│ │134 + // spacer pushes new repo and auth to the right │ │135 { │ │136 var spacer = try ui.widget.Spacer.init(allocator); │ │137 errdefer spacer.deinit(allocator); │ ╰──────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │155 .widget = .{ .text_box = text_box }, │ │156 .rect = null, │ │157 .min_size = .{ .width = new_repo_tab_label.len + 2, .height = null }, │ │161 - }); │ │162 - } │ │163 - │ │164 - // settings tab. settings are account preferences, so it needs a login. │ │165 - if (session.data.user_id != null) { │ │166 - var text_box = try wgt.TextBox.init(allocator, settings_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none });│ │167 - errdefer text_box.deinit(allocator); │ │168 - text_box.getFocus().mode = .all; │ │169 - text_box.getFocus().kind = .{ .custom = settings_link }; │ │170 - try tab_ids.put(allocator, text_box.getFocus().id, {}); │ │171 - if (std.mem.eql(u8, settings_link, current_link)) selected_tab = text_box.getFocus().id; │ │172 - try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │173 - .widget = .{ .text_box = text_box }, │ │174 - .rect = null, │ │175 - .min_size = .{ .width = settings_tab_label.len + 2, .height = null }, │ │158 }); │ │159 } │ │160 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯