diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-23 11:12:56 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-23 17:10:58 -0300 |
| commit | a53a1aafb9804e943bdcd720c2bb688ecb90a888 (patch) | |
| tree | 197ee0ac4106037d49c5c9fc7a2b6be4186173bf /src/Messages.zig | |
| parent | a0d367b6c54ff29737662fd7cf5a78d4d183cb20 (diff) | |
| download | pardes-a53a1aafb9804e943bdcd720c2bb688ecb90a888.tar.gz pardes-a53a1aafb9804e943bdcd720c2bb688ecb90a888.zip | |
Audit (colours, drawing): one Surface.tint, shared colour maths, the helix copies of hand-ported themes removed
The 22 <name>_helix themes that duplicate a hand-written port are gone;
monokai, ayu_dark and nord stay, since others inherit from them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/Messages.zig')
| -rw-r--r-- | src/Messages.zig | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/Messages.zig b/src/Messages.zig index 6d064c93..6785bd8a 100644 --- a/src/Messages.zig +++ b/src/Messages.zig @@ -398,16 +398,6 @@ pub fn noticeLife(pane: *const Pane, i: usize) ?Pane.MessageLife { }; } -pub fn blendRgb(from: [3]u8, to: [3]u8, amount: f32) [3]u8 { - var out: [3]u8 = undefined; - for (&out, from, to) |*o, a, b| { - const af: f32 = @floatFromInt(a); - const bf: f32 = @floatFromInt(b); - o.* = @intFromFloat(@round(bf + (af - bf) * std.math.clamp(amount, 0, 1))); - } - return out; -} - fn logMessage(p: *Pardes, id: usize, text: []const u8) void { if (text.len == 0) return; const serial: u32 = if (p.fs.session_write) 0 else if (id < MAX_PANES) if (p.panes[id]) |pane| pane.serial else 0 else 0; |
