╭ changed ──────╮ │src/ui/Home.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────╮ │12 pub const Users = @import("./Home/Users.zig"); │ │13 pub const Repos = @import("./Home/Repos.zig"); │ │14 pub const Header = @import("./Home/Header.zig");│ │15 -pub const Ansi = @import("./Home/Ansi.zig"); │ │16 -pub const Auth = @import("./Home/Auth.zig"); │ │15 +pub const Settings = @import("./Settings.zig"); │ │16 +pub const Auth = @import("./Auth.zig"); │ │17 │ │18 header: Header, │ │19 users: Users, │ ╰────────────────────────────────────────────────────╯ ╭─────────────────────────╮ │20 repos: Repos, │ │21 -ansi: Ansi, │ │21 +settings: Settings, │ │22 auth: Auth, │ │23 │ │24 const Self = @This();│ ╰─────────────────────────╯ ╭────────────────────────────────────────────────────────╮ │31 .header = try Header.init(arena), │ │32 .users = try Users.init(arena, haxy_moment),│ │33 .repos = try Repos.init(arena, haxy_moment),│ │34 - .ansi = Ansi.init(), │ │34 + .settings = Settings.init(), │ │35 .auth = Auth.init(), │ │36 }; │ │37 } │ ╰────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │75 } │ │76 │ │77 { │ │78 - var ansi_view = try Ansi.View.init(allocator, &data.ansi, session); │ │79 - errdefer ansi_view.deinit(allocator); │ │80 - try stack.children.put(allocator, ansi_view.getFocus().id, .{ .home_ansi = ansi_view }); │ │78 + var settings_view = try Settings.View.init(allocator, &data.settings, session); │ │79 + errdefer settings_view.deinit(allocator); │ │80 + try stack.children.put(allocator, settings_view.getFocus().id, .{ .settings = settings_view });│ │81 } │ │82 │ │83 { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │84 var auth_view = try Auth.View.init(allocator, &data.auth, session, users_tab_id); │ │85 errdefer auth_view.deinit(allocator); │ │86 - try stack.children.put(allocator, auth_view.getFocus().id, .{ .home_auth = auth_view }); │ │86 + try stack.children.put(allocator, auth_view.getFocus().id, .{ .auth = auth_view }); │ │87 } │ │88 │ │89 try box.children.put(allocator, stack.getFocus().id, .{ .widget = .{ .stack = stack }, .rect = null, .min_size = null });│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │113 self.session.data.current_page = switch (index) {│ │114 0 => .home_users, │ │115 1 => .home_repos, │ │116 - 2 => .home_ansi, │ │117 - 3 => .home_auth, │ │116 + 2 => .settings, │ │117 + 3 => .auth, │ │118 else => .home_users, │ │119 }; │ │120 } │ ╰──────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │149 const at_top = switch (selected_widget.*) { │ │150 .home_users => |*v| v.getSelectedIndex() == 0,│ │151 .home_repos => |*v| v.getSelectedIndex() == 0,│ │152 - .home_ansi => |*v| v.getSelectedIndex() == 0, │ │153 - .home_auth => |*v| v.getSelectedIndex() == 0, │ │152 + .settings => |*v| v.getSelectedIndex() == 0, │ │153 + .auth => |*v| v.getSelectedIndex() == 0, │ │154 else => false, │ │155 }; │ │156 if (at_top) { │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯