tangled
alpha
login
or
join now
rockorager.dev
/
comlink
2
fork
atom
an experimental irc client
2
fork
atom
overview
issues
pulls
pipelines
ui: use blend for typer style
rockorager.dev
1 year ago
50c0afc4
e8f4339f
verified
This commit was signed with the committer's
known signature
.
rockorager.dev
SSH Key Fingerprint:
SHA256:qn/Fjy7CpbcogGEPB14Y53hLnQleZNFY9lkQnuudFLs=
+5
-3
1 changed file
expand all
collapse all
unified
split
src
irc.zig
+5
-3
src/irc.zig
···
679
679
var buf: [3]*User = undefined;
680
680
const typers = self.getTypers(&buf);
681
681
682
682
+
const typer_style: vaxis.Style = .{ .fg = self.client.app.blendBg(50) };
683
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
690
-
const typer: vxfw.Text = .{ .text = text, .style = .{ .dim = true } };
692
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
703
-
const typer: vxfw.Text = .{ .text = text, .style = .{ .dim = true } };
705
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
712
-
const typer: vxfw.Text = .{ .text = text, .style = .{ .dim = true } };
714
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 },