From 08c07e21c47abe41ebd16ee260438da5b4c2039e Mon Sep 17 00:00:00 2001 From: Cinition Date: Wed, 23 Oct 2024 13:48:10 +0200 Subject: [PATCH] Add catppuccin theme --- build.zig | 4 ++++ build.zig.zon | 4 ++++ src/theme_files.zig | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/build.zig b/build.zig index a6c2948..99834f1 100644 --- a/build.zig +++ b/build.zig @@ -80,4 +80,8 @@ fn add_themes(b: *std.Build, exe: anytype) void { theme_file(b, exe, "everforest", "themes/everforest-light.json"); theme_file(b, exe, "nord", "themes/nord-color-theme.json"); theme_file(b, exe, "spacedust", "themes/Spacedust-color-theme.json"); + theme_file(b, exe, "catppuccin", "frappe.json"); + theme_file(b, exe, "catppuccin", "latte.json"); + theme_file(b, exe, "catppuccin", "macchiato.json"); + theme_file(b, exe, "catppuccin", "mocha.json"); } diff --git a/build.zig.zon b/build.zig.zon index 5efb718..cd11963 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -68,6 +68,10 @@ .theme_spacedust = .{ .url = "https://github.com/wallsified/Spacedust-VSCode/archive/160a0e266a369c336d5393c93decc078c636fc3d.tar.gz", .hash = "122027fbeddeabd06d699e81c408dadf17d60c5d538e13e7c69f2685ca63262a2bda", + }, + .theme_catppuccin = .{ + .url = "https://github.com/catppuccin/vscode/archive/75805b74e052fe6673a1bdf3948bfa5b481edb7e.tar.gz", + .hash = "1220bee1c4901235e1653b324d2ee1bea69ee9c88d64a12f599aa31ad180cfef0857", } }, .paths = .{ diff --git a/src/theme_files.zig b/src/theme_files.zig index 29dfe9f..1efbd3e 100644 --- a/src/theme_files.zig +++ b/src/theme_files.zig @@ -43,6 +43,9 @@ pub const theme_files = [_]theme_file{ THEME("themes/everforest-dark.json"), THEME("themes/nord-color-theme.json"), THEME("themes/Spacedust-color-theme.json"), + THEME("frappe.json"), + THEME("macchiato.json"), + THEME("mocha.json"), // light themes @@ -62,6 +65,7 @@ pub const theme_files = [_]theme_file{ THEME("themes/rose-pine-dawn-color-theme.json"), THEME("themes/adwaita-light.json"), THEME("themes/everforest-light.json"), + THEME("latte.json"), }; fn THEME(comptime file_path: []const u8) theme_file {