Improve styling.
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user