a modern tui library written in zig

fix(vxfw): render Button background consistently in VSCode terminal

authored by

Fristender and committed by rockorager.dev a3ae1d53 14804a7c

+6 -4
+6 -4
src/vxfw/Button.zig
··· 17 17 18 18 // Styles 19 19 style: struct { 20 - default: vaxis.Style = .{ .reverse = true }, 21 - mouse_down: vaxis.Style = .{ .fg = .{ .index = 4 }, .reverse = true }, 22 - hover: vaxis.Style = .{ .fg = .{ .index = 3 }, .reverse = true }, 23 - focus: vaxis.Style = .{ .fg = .{ .index = 5 }, .reverse = true }, 20 + // Use explicit fg/bg so terminals that don't render reverse-video on blank cells 21 + // still show the full button area. 22 + default: vaxis.Style = .{ .fg = .{ .index = 0 }, .bg = .{ .index = 7 } }, 23 + mouse_down: vaxis.Style = .{ .fg = .{ .index = 15 }, .bg = .{ .index = 4 } }, 24 + hover: vaxis.Style = .{ .fg = .{ .index = 0 }, .bg = .{ .index = 3 } }, 25 + focus: vaxis.Style = .{ .fg = .{ .index = 15 }, .bg = .{ .index = 5 } }, 24 26 } = .{}, 25 27 26 28 // State