summaryrefslogtreecommitdiff
path: root/src/File.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-27 21:49:28 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commit41bbbd05dccb02631ed785d19ed54fb4edfcc471 (patch)
treeab1b8c26cb588eb92b9b1e58004237a2abe919ab /src/File.zig
parentfa5260c120268f1c1e3dbd2a17264e5896476576 (diff)
downloadpardes-41bbbd05dccb02631ed785d19ed54fb4edfcc471.tar.gz
pardes-41bbbd05dccb02631ed785d19ed54fb4edfcc471.zip
Move colour themes out of pardes.zig into colors.zig
Pure move, no behaviour change: the Theme type, the curated palettes, fold and the themes ring with its two comptime checks, themeContrast, mix, ChromeTheme, ChromeAnimation and initial_chrome, the Pardes methods that load theme files and switch themes (nextThemeFileGeneration, requestThemeFile, ThemeFileRequest, themeFileRequest, failThemeFile, loadThemeFile, finishThemeInitialization, invalidateThemeDependentRasters, setThemeIndex), and the ten theme tests go verbatim to colors.zig. The methods become free functions taking `p: *Pardes`; their call sites change from `p.setThemeIndex(i)` to `colors.setThemeIndex(p, i)` (37 of them, in pardes.zig, builtins.zig, file_watch.zig, macos.zig and two test files). pardes.zig keeps `pub const Theme/themes/native_theme_count/ ChromeTheme = colors.X;` for the shells that name them, and sync and enterTagEdit become pub because a moved test calls them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/File.zig')
0 files changed, 0 insertions, 0 deletions