diff options
Diffstat (limited to 'core/lib_syntax.zig')
| -rw-r--r-- | core/lib_syntax.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/lib_syntax.zig b/core/lib_syntax.zig index fa6812ee..2c771b72 100644 --- a/core/lib_syntax.zig +++ b/core/lib_syntax.zig @@ -102,21 +102,21 @@ pub const NodeWalk = syntax.NodeWalk; pub const Span = syntax.Span; pub const walkNodes = syntax.walkNodes; -pub const Theme = colors.LegacyTheme; +pub const Theme = colors.Theme; /// Every theme: pardes's own, then those imported from helix and zed. The /// first is the default. -pub const themes: []const Theme = &colors.legacy_themes; +pub const themes: []const Theme = &colors.themes; /// The theme named `name`, whatever its case. pub fn theme(name: []const u8) ?*const Theme { - return &colors.legacy_themes[colors.themeIndex(name) orelse return null]; + return &colors.themes[colors.themeIndex(name) orelse return null]; } /// A theme's page and its text's ink as a file pane has them: its own, or /// its tag's for the one theme with none (`dark`, a terminal's own). pub fn page(th: *const Theme) [3]u8 { - return th.bg orelse th.tag_bg; + return th.page orelse th.tag; } pub fn ink(th: *const Theme) [3]u8 { - return th.fg orelse th.tag_fg; + return th.text orelse th.tag_text; } pub const synInk = colors.synInk; |
