Skip to content

Commit

Permalink
feat: add Rosé Pine themes
Browse files Browse the repository at this point in the history
  • Loading branch information
neurocyte committed Mar 8, 2024
1 parent 96d76e5 commit ecd690a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
4 changes: 4 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/theme_files.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 {
Expand Down

0 comments on commit ecd690a

Please sign in to comment.