feat: set undercurl color for diagnostics

This commit is contained in:
CJ van den Berg 2024-07-09 21:16:16 +02:00
parent 4b694d4f0f
commit 0caeb2c523
3 changed files with 8 additions and 3 deletions

View file

@ -30,6 +30,10 @@ pub inline fn set_style(self: *Cell, style_: Style) void {
}
}
pub inline fn set_under_color(self: *Cell, arg_rgb: c_uint) void {
self.cell.style.ul = vaxis.Cell.Color.rgbFromUint(@intCast(arg_rgb));
}
pub inline fn set_style_fg(self: *Cell, style_: Style) void {
if (style_.fg) |fg| self.cell.style.fg = vaxis.Cell.Color.rgbFromUint(fg);
}