From ecd690a090291c0a6fac40a645faf3015c4dc2b4 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Fri, 8 Mar 2024 15:08:44 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20add=20Ros=C3=A9=20Pine=20themes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.zig | 5 +++++ build.zig.zon | 4 ++++ src/theme_files.zig | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/build.zig b/build.zig index 1e185c3..c0a4de3 100644 --- a/build.zig +++ b/build.zig @@ -67,4 +67,9 @@ fn add_themes(b: *std.Build, exe: anytype) void { theme_file(b, exe, "ayu", "ayu-light.json"); theme_file(b, exe, "ayu", "ayu-light-bordered.json"); theme_file(b, exe, "onedark_pro", "themes/OneDark-Pro.json"); + theme_file(b, exe, "rose_pine", "themes/rose-pine-color-theme.json"); + theme_file(b, exe, "rose_pine", "themes/rose-pine-no-italics-color-theme.json"); + theme_file(b, exe, "rose_pine", "themes/rose-pine-moon-color-theme.json"); + theme_file(b, exe, "rose_pine", "themes/rose-pine-moon-no-italics-color-theme.json"); + theme_file(b, exe, "rose_pine", "themes/rose-pine-dawn-color-theme.json"); } diff --git a/build.zig.zon b/build.zig.zon index 4e874be..8c4d706 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -45,6 +45,10 @@ .url = "https://github.com/Binaryify/OneDark-Pro/archive/2cb4ae735fc0482e0486b52cd873128eb5249900.tar.gz", .hash = "122046bbdd4b5a816d5324a8c6b78e4d70dc07cdafb113b2a118bcdfeb0f8531dc60", }, + .theme_rose_pine = .{ + .url = "https://github.com/rose-pine/vscode/archive/5a6d89246d58316802bf5c54bb83d6654ff6a1c5.tar.gz", + .hash = "122000c273023b1213dbc73bc1c144a7a6ef5879a30205ad1939589ddc4736a6d24e", + }, }, .paths = .{ "build.zig", diff --git a/src/theme_files.zig b/src/theme_files.zig index b104fad..5fae674 100644 --- a/src/theme_files.zig +++ b/src/theme_files.zig @@ -34,6 +34,10 @@ pub const theme_files = [_]theme_file{ THEME("extensions/theme-defaults/themes/dark_plus.json"), THEME("extensions/theme-defaults/themes/dark_modern.json"), THEME("themes/OneDark-Pro.json"), + THEME("themes/rose-pine-color-theme.json"), + THEME("themes/rose-pine-no-italics-color-theme.json"), + THEME("themes/rose-pine-moon-color-theme.json"), + THEME("themes/rose-pine-moon-no-italics-color-theme.json"), // light themes @@ -49,6 +53,7 @@ pub const theme_files = [_]theme_file{ THEME("themes/tokyo-night-light-color-theme.json"), THEME("ayu-light.json"), THEME("ayu-light-bordered.json"), + THEME("themes/rose-pine-dawn-color-theme.json"), }; fn THEME(comptime file_path: []const u8) theme_file {