Initial release

This commit is contained in:
CJ van den Berg 2024-02-07 21:49:37 +01:00
parent 0227a6b412
commit 142d718dcb
12 changed files with 2685 additions and 0 deletions

30
src/theme.zig Normal file
View file

@ -0,0 +1,30 @@
name: []const u8,
description: []const u8,
type: []const u8,
tokens: Tokens,
editor: Style,
editor_cursor: Style,
editor_line_highlight: Style,
editor_error: Style,
editor_match: Style,
editor_selection: Style,
editor_whitespace: Style,
editor_gutter: Style,
editor_gutter_active: Style,
editor_gutter_modified: Style,
editor_gutter_added: Style,
editor_gutter_deleted: Style,
statusbar: Style,
statusbar_hover: Style,
scrollbar: Style,
scrollbar_hover: Style,
scrollbar_active: Style,
sidebar: Style,
panel: Style,
pub const FontStyle = enum { normal, bold, italic, underline, strikethrough };
pub const Style = struct { fg: ?Color = null, bg: ?Color = null, fs: ?FontStyle = null };
pub const Color = u24;
pub const Token = struct { id: usize, style: Style };
pub const Tokens = []const Token;