this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

vxfw: add query_color command

+11
+5
src/vxfw/App.zig
··· 275 275 } 276 276 alloc.free(notification.body); 277 277 }, 278 + .query_color => |kind| { 279 + self.vx.queryColor(self.tty.anyWriter(), kind) catch |err| { 280 + std.log.err("queryColor error: {}", .{err}); 281 + }; 282 + }, 278 283 } 279 284 } 280 285 }
+6
src/vxfw/vxfw.zig
··· 93 93 title: ?[]const u8, 94 94 body: []const u8, 95 95 }, 96 + 97 + query_color: vaxis.Cell.Color.Kind, 96 98 }; 97 99 98 100 pub const EventContext = struct { ··· 169 171 .title = null, 170 172 .body = try alloc.dupe(u8, body), 171 173 } }); 174 + } 175 + 176 + pub fn queryColor(self: *EventContext, kind: vaxis.Cell.Color.Kind) Allocator.Error!void { 177 + try self.addCmd(.{ .query_color = kind }); 172 178 } 173 179 }; 174 180