╭ changed ─────────────╮ │src/ui/Repo/Events.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │510 │ │511 const list = self.listBox(); │ │512 for (list.children.keys(), list.children.values()) |id, *child| switch (child.widget) { │ │513 - .text_box => |*text_box| { │ │514 - const selected = list.getFocus().child_id == id; │ │515 - text_box.options.border_style = if (selected) .single else .hidden; │ │516 - text_box.options.inverted = selected; │ │517 - }, │ │513 + .text_box => |*text_box| ui.widget.markSelected(text_box, list.getFocus().child_id == id),│ │514 else => {}, │ │515 }; │ │516 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │716 .text_box => |*text_box| text_box, │ │717 else => continue, │ │718 }; │ │723 - const selected = self.box.getFocus().child_id == id; │ │724 - tab.options.border_style = if (selected) .single else .hidden; │ │725 - tab.options.inverted = selected; │ │719 + ui.widget.markSelected(tab, self.box.getFocus().child_id == id);│ │720 } │ │721 try self.box.build(allocator, constraint, root_focus); │ │722 } │ ╰─────────────────────────────────────────────────────────────────────────────────────╯