Improve styling.

This commit is contained in:
Greyson Parrelli
2026-08-12 21:15:07 -04:00
parent 4e0e400372
commit e16b147e16
13 changed files with 1104 additions and 119 deletions
+3 -3
View File
@@ -365,7 +365,7 @@ fn render(self: *Terminal, cr: *cairo.Context, _: c_int, _: c_int) !void {
const default_bg: theme.Rgb = if (term.colors.background.get()) |c|
.from(c)
else
theme.bg;
theme.bg();
{
const r, const g, const b = default_bg.cairoRgb();
cr.setSourceRgb(r, g, b);
@@ -375,7 +375,7 @@ fn render(self: *Terminal, cr: *cairo.Context, _: c_int, _: c_int) !void {
const default_fg: theme.Rgb = if (term.colors.foreground.get()) |c|
.from(c)
else
theme.fg;
theme.fg();
const layout = pangocairo.createLayout(cr);
defer layout.unref();
@@ -536,7 +536,7 @@ fn drawCursor(
const x = pad + @as(f64, @floatFromInt(cursor.x)) * self.cell_w;
const y = pad + @as(f64, @floatFromInt(cursor.y)) * self.cell_h;
const color: theme.Rgb = if (term.colors.cursor.get()) |c| .from(c) else theme.cursor;
const color: theme.Rgb = if (term.colors.cursor.get()) |c| .from(c) else theme.cursor();
const r, const g, const b = color.cairoRgb();
cr.setSourceRgb(r, g, b);