an experimental irc client

ui: use blend for typer style

rockorager.dev 50c0afc4 e8f4339f

verified
+5 -3
+5 -3
src/irc.zig
··· 679 679 var buf: [3]*User = undefined; 680 680 const typers = self.getTypers(&buf); 681 681 682 + const typer_style: vaxis.Style = .{ .fg = self.client.app.blendBg(50) }; 683 + 682 684 switch (typers.len) { 683 685 0 => break :typing, 684 686 1 => { ··· 687 689 "{s} is typing...", 688 690 .{typers[0].nick}, 689 691 ); 690 - const typer: vxfw.Text = .{ .text = text, .style = .{ .dim = true } }; 692 + const typer: vxfw.Text = .{ .text = text, .style = typer_style }; 691 693 const typer_ctx = ctx.withConstraints(.{}, ctx.max); 692 694 try children.append(.{ 693 695 .origin = .{ .col = 0, .row = max.height - 2 }, ··· 700 702 "{s} and {s} are typing...", 701 703 .{ typers[0].nick, typers[1].nick }, 702 704 ); 703 - const typer: vxfw.Text = .{ .text = text, .style = .{ .dim = true } }; 705 + const typer: vxfw.Text = .{ .text = text, .style = typer_style }; 704 706 const typer_ctx = ctx.withConstraints(.{}, ctx.max); 705 707 try children.append(.{ 706 708 .origin = .{ .col = 0, .row = max.height - 2 }, ··· 709 711 }, 710 712 else => { 711 713 const text = "Several people are typing..."; 712 - const typer: vxfw.Text = .{ .text = text, .style = .{ .dim = true } }; 714 + const typer: vxfw.Text = .{ .text = text, .style = typer_style }; 713 715 const typer_ctx = ctx.withConstraints(.{}, ctx.max); 714 716 try children.append(.{ 715 717 .origin = .{ .col = 0, .row = max.height - 2 },