summaryrefslogtreecommitdiff
path: root/src/ninep/ctl.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 13:28:13 -0300
committerGabriel Schneider <[email protected]>2026-11-05 15:23:49 -0300
commit23c9932afe9bbf01aa84d780e9030dfb6e333475 (patch)
tree01f801fe4e9f286cc44eb8ad206ed4ab8585ab77 /src/ninep/ctl.zig
parent1b2ac091200e9192f3677abe161217ba82463606 (diff)
downloadpardes-23c9932afe9bbf01aa84d780e9030dfb6e333475.tar.gz
pardes-23c9932afe9bbf01aa84d780e9030dfb6e333475.zip
effects out, the theme crossfade: a theme change takes the chrome at once, as it always took the content; colors.ChromeAnimation (its OKLab steps, its retarget, the ticks and the frames it asked of nextWake) goes, Pardes.chrome is the theme's chrome, set as the theme changes, and the `animate` flag goes from loadThemeFile and applyThemeEffect with it, as does the build's -Dtheme-animation option (and its place in the wire's fingerprint); no frontend fades a theme of its own (a window crossfading every cell's colour for 160 ms is a copy of the last frame kept and blended, for one keystroke's change); the fade's tests go, the PDF test loses its ticks through a fade, and `core animation keeps wall time at 60, 120 and 144 Hz and across a stall` goes with the one animation that ran it; the perf baselines lose the option from their build identity; GUI goldens 16-debug and 17-terminal change, the golden session having faded its themes by default: a fade's frames kept the Debug word's announcement up in the picture's pane, which gave up a row to it under the Debug box; the tree before this change built with -Dtheme-animation=false draws exactly these frames, all sixteen byte for byte
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/ninep/ctl.zig')
-rw-r--r--src/ninep/ctl.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index 2cfee904..ec870253 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -1706,7 +1706,7 @@ test "a Restore asks again for the ThemeFile the dump names, as a /ctl write of
var encoded: std.Io.Writer.Allocating = .init(gpa);
defer encoded.deinit();
try std.zon.stringify.serialize(custom, .{}, &encoded.writer);
- try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written(), false));
+ try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written()));
try pardes.dump.dumpState(p);
const restored = try pardes.dump.restore(p, p.dump_out.?, "/tmp/pardes.dump.zon");
defer restored.deinit();
@@ -1741,9 +1741,9 @@ test "a ThemeFile that fails to load changes nothing: the root ctl still names t
var encoded: std.Io.Writer.Allocating = .init(gpa);
defer encoded.deinit();
try std.zon.stringify.serialize(custom, .{}, &encoded.writer);
- try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written(), false));
+ try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written()));
_ = wr(p, root_ctl, "ThemeFile /tmp/pardes-bad-theme.zon\n");
- try testing.expect(!pardes.colors.loadThemeFile(p, p.theme_file_generation, ".{ .name = ", false));
+ try testing.expect(!pardes.colors.loadThemeFile(p, p.theme_file_generation, ".{ .name = "));
try testing.expect(std.mem.indexOf(u8, rd(p, root_ctl, 0, 1 << 16).bytes, "ThemeFile " ++ good ++ "\n") != null);
try testing.expectEqualStrings(good, p.theme_file_path.get());
}
@@ -1760,7 +1760,7 @@ test "after a ThemeFile the root ctl and DumpConfig say ThemeFile and its path,
var encoded: std.Io.Writer.Allocating = .init(gpa);
defer encoded.deinit();
try std.zon.stringify.serialize(custom, .{}, &encoded.writer);
- try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written(), false));
+ try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written()));
const settings = rd(p, root_ctl, 0, 1 << 16).bytes;
try testing.expect(std.mem.indexOf(u8, settings, "ThemeFile " ++ path ++ "\n") != null);
try testing.expect(std.mem.indexOf(u8, settings, "Theme mine") == null);