diff --git a/src/gui/gpu/gpu.zig b/src/gui/gpu/gpu.zig index 66860182..fefd8a29 100644 --- a/src/gui/gpu/gpu.zig +++ b/src/gui/gpu/gpu.zig @@ -120,6 +120,10 @@ pub fn setBackground(color: RGBA) void { global.background = color; } +pub fn getBackground() RGBA { + return global.background; +} + // ── WindowState ──────────────────────────────────────────────────────────── pub const WindowState = struct { diff --git a/src/gui/wio/app.zig b/src/gui/wio/app.zig index 0cdd97c8..3fbead22 100644 --- a/src/gui/wio/app.zig +++ b/src/gui/wio/app.zig @@ -373,7 +373,7 @@ fn maybeReloadFont(win_size: wio.Size, state: *gpu.WindowState, cell_width: *u16 fn colorFromVaxis(color: vaxis.Cell.Color) RGBA { return switch (color) { - .default => .init(0, 0, 0, 255), + .default => gpu.getBackground(), .index => |idx| .from_u24(@import("xterm").colors[idx]), .rgb => |rgb| .from_u8s(rgb), };