summaryrefslogtreecommitdiff
path: root/src/colors.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 06:24:42 -0300
committerGabriel Schneider <[email protected]>2026-11-06 11:19:44 -0300
commitc1917b949b9580de8bf0977874a210f0266812da (patch)
tree447dd2235ea00634f662cd3becf4bceb8a895f41 /src/colors.zig
parent76c55b5bce0f181b0b15b16596c900397dfef544 (diff)
downloadpardes-c1917b949b9580de8bf0977874a210f0266812da.tar.gz
pardes-c1917b949b9580de8bf0977874a210f0266812da.zip
kinds #14, the core's PDF code gone: pdf.zig and pdf_view.zig leave and every pdf_enabled branch with them; look, Jump, Recent, dumps (one from before the addon opens as its pane), the watch, mouse, keys, the rail and the tag go through Kind for any kind's pane; test/pdf.zig's behaviours are T1 cases over 9P (addons_pdf.zig) and pane cases (a Shadow over a replica, a file changed under it), the harnesses load pdf.so by path
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/colors.zig')
-rw-r--r--src/colors.zig10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/colors.zig b/src/colors.zig
index de20cf9b..7bac64ea 100644
--- a/src/colors.zig
+++ b/src/colors.zig
@@ -7,7 +7,6 @@ const std = @import("std");
const Color = @import("surface.zig").Color;
const FontRole = @import("surface.zig").FontRole;
const config = @import("config.zig");
-const pdf_enabled = panes.Pdf.enabled;
const platform = pardes.platform;
const MAX_PANES = pardes.MAX_PANES;
const BOX_H = pardes.BOX_H;
@@ -731,7 +730,6 @@ pub fn loadThemeFile(p: *Pardes, generation: u32, bytes: []const u8) bool {
p.custom_theme = parsed;
if (old) |theme_value| p.gpa.free(theme_value.name);
_ = p.theme_file_loaded.set(request.path);
- invalidateThemeDependentRasters(p);
_ = p.scratch.reset(.{ .retain_with_limit = pardes.memory.limits.scratch_kept });
p.sync();
return true;
@@ -741,13 +739,6 @@ pub fn finishThemeInitialization(p: *Pardes) void {
p.chrome = ChromeTheme.fromTheme(p.theme());
}
-fn invalidateThemeDependentRasters(p: *Pardes) void {
- if (comptime pdf_enabled) for (p.panes) |slot| {
- const pane = slot orelse continue;
- const pv = pane.pdf orelse continue;
- if (pv.tint != .disabled) pv.invalidateAllRasters();
- };
-}
/// Themes near `name`, a line of them, for a Theme given a name there is
/// none of (all of them, Themes, are too many for a refused write): every
@@ -841,7 +832,6 @@ pub fn setThemeIndex(p: *Pardes, index: usize) void {
p.emit(.{ .theme_file = .{ .generation = generation, .on = false } });
}
p.settings.theme = @intCast(index);
- invalidateThemeDependentRasters(p);
}
test "a theme file that cannot be read is named in the failure" {