╭ changed ────────╮ │src/ui/widget.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────╮ │57 repo_events: ui.Repo.Events.View, │ │58 repo_comment: ui.Repo.Comment.Item, │ │59 copyable_text: CopyableText, │ │60 + patch_source: ui.Repo.Patches.Source, │ │61 home_users: ui.Home.Users.View, │ │62 home_repos: ui.Home.Repos.View, │ │63 auth_tab: ui.Home.Header.AuthTab.View,│ ╰──────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │830 self.box.deinit(allocator); │ │831 } │ │832 │ │833 + pub fn setLabel(self: *SubmitButton, allocator: std.mem.Allocator, label: []const u8) !void { │ │834 + const button = &self.box.children.values()[1]; │ │835 + try button.widget.text_box.setContent(allocator, label); │ │836 + button.min_size = .{ .width = label.len + 2, .height = null }; │ │837 + } │ │838 + │ │839 pub fn build(self: *SubmitButton, allocator: std.mem.Allocator, constraint: layout.Constraint, root_focus: *Focus) !void {│ │840 try self.box.build(allocator, constraint, root_focus); │ │841 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯