╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │1529 rects: std.ArrayList(layout.IRect), │ │1530 // backs the per-item strings the text boxes borrow. │ │1531 arena: std.heap.ArenaAllocator, │ │1532 - // whether the owning view considers this flow selected; only then does the│ │1533 - // selected item show its border. │ │1534 - selected: bool, │ │1532 │ │1533 pub const Item = struct { text: []const u8, link: []const u8 = "" }; │ │1534 │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────╮ │1539 .text_boxes = .empty, │ │1540 .rects = .empty, │ │1541 .arena = std.heap.ArenaAllocator.init(allocator),│ │1545 - .selected = true, │ │1542 }; │ │1543 } │ │1544 │ ╰───────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1569 for (items) |item| { │ │1570 const line = try aa.dupe(u8, item.text); │ │1571 │ │1576 - var text_box = try wgt.TextBox(Widget).init(allocator, line, .{ .border_style = .hidden, .rounded_corners = true, .wrap_kind = .none });│ │1572 + var text_box = try wgt.TextBox(Widget).init(allocator, line, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │1573 errdefer text_box.deinit(allocator); │ │1574 text_box.getFocus().focusable = true; │ │1575 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1601 var row_height: usize = 0; │ │1602 var total_width: usize = 0; │ │1603 for (self.text_boxes.items) |*tb| { │ │1608 - tb.options.border_style = if (self.selected and self.focus.child_id == tb.getFocus().id) .single else .hidden;│ │1604 try tb.build(allocator, .{ │ │1605 .min_size = .{ .width = null, .height = null }, │ │1606 .max_size = .{ .width = max_width, .height = null }, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯