feat: add tokyo night themes

This commit is contained in:
CJ van den Berg 2024-02-18 23:37:30 +01:00
parent d268baa972
commit ab24c12c24
4 changed files with 13 additions and 0 deletions

View file

@ -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");
}

View file

@ -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",

View file

@ -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)) {

View file

@ -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 {