From 0386d791da9f484f2a01ff9b93268a39b106349d Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 15 May 2024 22:55:55 +0200 Subject: [PATCH] feat: add adwaita themes --- build.zig | 2 ++ build.zig.zon | 4 ++++ src/theme_files.zig | 2 ++ 3 files changed, 8 insertions(+) diff --git a/build.zig b/build.zig index c0a4de3..26d45ca 100644 --- a/build.zig +++ b/build.zig @@ -72,4 +72,6 @@ fn add_themes(b: *std.Build, exe: anytype) void { 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"); + theme_file(b, exe, "adwaita", "themes/adwaita-dark.json"); + theme_file(b, exe, "adwaita", "themes/adwaita-light.json"); } diff --git a/build.zig.zon b/build.zig.zon index 8c4d706..0549cf0 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -49,6 +49,10 @@ .url = "https://github.com/rose-pine/vscode/archive/5a6d89246d58316802bf5c54bb83d6654ff6a1c5.tar.gz", .hash = "122000c273023b1213dbc73bc1c144a7a6ef5879a30205ad1939589ddc4736a6d24e", }, + .theme_adwaita = .{ + .url = "https://github.com/piousdeer/vscode-adwaita/archive/5de82debcb101e5796b478e55dd382bd64be64f7.tar.gz", + .hash = "1220c6227c698f27a09c20706a8c785c4123a943e3b953c1f50457496f54e725d55b", + }, }, .paths = .{ "build.zig", diff --git a/src/theme_files.zig b/src/theme_files.zig index 5fae674..8b864d2 100644 --- a/src/theme_files.zig +++ b/src/theme_files.zig @@ -38,6 +38,7 @@ pub const theme_files = [_]theme_file{ 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"), + THEME("themes/adwaita-dark.json"), // light themes @@ -54,6 +55,7 @@ pub const theme_files = [_]theme_file{ THEME("ayu-light.json"), THEME("ayu-light-bordered.json"), THEME("themes/rose-pine-dawn-color-theme.json"), + THEME("themes/adwaita-light.json"), }; fn THEME(comptime file_path: []const u8) theme_file {