this repo has no description
13
fork

Configure Feed

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

vxfw(TextField): let users set style

+4 -1
+4 -1
src/vxfw/TextField.zig
··· 18 18 // Index of our cursor 19 19 buf: Buffer, 20 20 21 + /// Style to draw the TextField with 22 + style: vaxis.Style = .{}, 23 + 21 24 /// the number of graphemes to skip when drawing. Used for horizontal scrolling 22 25 draw_offset: u16 = 0, 23 26 /// the column we placed the cursor the last time we drew ··· 211 214 .{ .width = max_width, .height = @max(ctx.min.height, 1) }, 212 215 ); 213 216 214 - const base: vaxis.Cell = .{ .style = .{} }; 217 + const base: vaxis.Cell = .{ .style = self.style }; 215 218 @memset(surface.buffer, base); 216 219 const style: vaxis.Style = .{}; 217 220 const cursor_idx = self.graphemesBeforeCursor();