From b576c238fb0e3da3ac8d22baf3f29245a5a6f2bc Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 2 Aug 2026 23:48:38 -0300 Subject: add colorscheme-aware PDF tint modes --- src/config.zig | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/config.zig') diff --git a/src/config.zig b/src/config.zig index 41a70e4a..3eedf707 100644 --- a/src/config.zig +++ b/src/config.zig @@ -164,10 +164,15 @@ pub const leader_path = paths: { table.set(.FontSel, "tf"); table.set(.Font, null); } - // PdfFit exists only in MuPDF builds (its run declaration deliberately - // changes shape when the feature is off), so name its toggle path through - // the same comptime branch rather than making feature-off enums mention it. - if (pardes.pdf_enabled) table.set(.PdfFit, "tz"); + // The PDF toggles exist only in MuPDF builds (their run declarations + // deliberately change shape when the feature is off), so name their paths + // through the same comptime branch rather than making feature-off enums + // mention them. `ti` was the unused slot in the display-toggle group; + // PdfFit's established `tz` stays unchanged. + if (pardes.pdf_enabled) { + table.set(.PdfTint, "ti"); + table.set(.PdfFit, "tz"); + } // ...and the property EnumArray.init used to give for free: every builtin // this build HAS is a builtin someone decided a path (or a null) for. for (std.enums.values(Builtin)) |b| if (table.get(b)) |p| { -- cgit v1.3