feat: add ayu themes
This commit is contained in:
parent
ab24c12c24
commit
42399273a9
4 changed files with 19 additions and 0 deletions
|
|
@ -184,6 +184,8 @@ fn load_token_settings_object(file_name: []const u8, scopes_name: ?[]const u8, c
|
|||
style.fs = .italic;
|
||||
} else if (eql(u8, "strikethrough", value)) {
|
||||
style.fs = .strikethrough;
|
||||
} else if (eql(u8, "normal", value)) {
|
||||
style.fs = .normal;
|
||||
} else if (eql(u8, "", value)) {
|
||||
style.fs = .normal;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -36,8 +36,15 @@ pub const theme_files = [_]theme_file{
|
|||
THEME("themes/tokyo-night-storm-color-theme.json"),
|
||||
THEME("themes/tokyo-night-color-theme.json"),
|
||||
THEME("themes/tokyo-night-light-color-theme.json"),
|
||||
THEME("ayu-dark.json"),
|
||||
THEME("ayu-dark-bordered.json"),
|
||||
THEME("ayu-mirage.json"),
|
||||
THEME("ayu-mirage-bordered.json"),
|
||||
THEME("ayu-light.json"),
|
||||
THEME("ayu-light-bordered.json"),
|
||||
};
|
||||
|
||||
fn THEME(comptime file_path: []const u8) theme_file {
|
||||
@setEvalBranchQuota(2000);
|
||||
return .{ .file_name = std.fs.path.basename(file_path), .json = @embedFile(file_path) };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue