Skip to content

Commit

Permalink
feat: add tokyo night themes
Browse files Browse the repository at this point in the history
  • Loading branch information
neurocyte committed Feb 18, 2024
1 parent d268baa commit ab24c12
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ fn add_themes(b: *std.Build, exe: anytype) void {
theme_file(b, exe, "gruvbox", "themes/gruvbox-light-hard.json");
theme_file(b, exe, "gruvbox", "themes/gruvbox-light-medium.json");
theme_file(b, exe, "gruvbox", "themes/gruvbox-light-soft.json");
theme_file(b, exe, "tokyo_night", "themes/tokyo-night-storm-color-theme.json");
theme_file(b, exe, "tokyo_night", "themes/tokyo-night-color-theme.json");
theme_file(b, exe, "tokyo_night", "themes/tokyo-night-light-color-theme.json");
}
4 changes: 4 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
.url = "https://github.com/jdinhify/vscode-theme-gruvbox/archive/b1b9837e6747e040b69c7d46e502286bb0f257f7.tar.gz",
.hash = "1220fcaf3181a354ee8a1413f3a15d2a1842e1377a95f636d4f26602d5bb38e45f00",
},
.theme_tokyo_night = .{
.url = "https://github.com/enkia/tokyo-night-vscode-theme/archive/55336bd57924021c174470d9f476a1db01eddb97.tar.gz",
.hash = "1220f9729cd271c29dee0e199b2bc0f801cb657b603668680a07191b9a8c1b1f21fb",
},
},
.paths = .{
"build.zig",
Expand Down
3 changes: 3 additions & 0 deletions src/compile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ fn load_token_settings_object(file_name: []const u8, scopes_name: ?[]const u8, c
} else if (eql(u8, "italic underline", value)) {
style.fs = .italic;
style.fs = .underline;
} else if (eql(u8, "bold italic", value)) {
style.fs = .bold;
style.fs = .italic;
} else if (eql(u8, "strikethrough", value)) {
style.fs = .strikethrough;
} else if (eql(u8, "", value)) {
Expand Down
3 changes: 3 additions & 0 deletions src/theme_files.zig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ pub const theme_files = [_]theme_file{
THEME("extensions/theme-defaults/themes/light_vs.json"),
THEME("extensions/theme-defaults/themes/light_plus.json"),
THEME("extensions/theme-defaults/themes/light_modern.json"),
THEME("themes/tokyo-night-storm-color-theme.json"),
THEME("themes/tokyo-night-color-theme.json"),
THEME("themes/tokyo-night-light-color-theme.json"),
};

fn THEME(comptime file_path: []const u8) theme_file {
Expand Down

0 comments on commit ab24c12

Please sign in to comment.