summaryrefslogtreecommitdiff
path: root/src/colors.zig
diff options
context:
space:
mode:
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" {