diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-02 23:48:38 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | b576c238fb0e3da3ac8d22baf3f29245a5a6f2bc (patch) | |
| tree | 5e61547e88386d78868b23decd3956339ee23e9d /src/config.zig | |
| parent | 90eed6a89c66d6243ea43e799113409244308563 (diff) | |
| download | pardes-b576c238fb0e3da3ac8d22baf3f29245a5a6f2bc.tar.gz pardes-b576c238fb0e3da3ac8d22baf3f29245a5a6f2bc.zip | |
add colorscheme-aware PDF tint modes
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 13 |
1 files changed, 9 insertions, 4 deletions
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| { |
