feat: tweak layout of theme objects

This commit is contained in:
CJ van den Berg 2025-03-26 21:04:35 +01:00
parent 59bf204551
commit a1b1d74282
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1,7 +1,6 @@
name: []const u8, name: []const u8,
description: []const u8, description: []const u8,
type: []const u8, type: []const u8,
tokens: Tokens,
editor: Style, editor: Style,
editor_cursor: Style, editor_cursor: Style,
@ -38,6 +37,8 @@ tab_active: Style,
tab_inactive: Style, tab_inactive: Style,
tab_selected: Style, tab_selected: Style,
tokens: Tokens,
pub const FontStyle = enum { normal, bold, italic, underline, undercurl, strikethrough }; pub const FontStyle = enum { normal, bold, italic, underline, undercurl, strikethrough };
pub const Style = struct { fg: ?Color = null, bg: ?Color = null, fs: ?FontStyle = null }; pub const Style = struct { fg: ?Color = null, bg: ?Color = null, fs: ?FontStyle = null };
pub const Color = struct { color: u24, alpha: u8 = 0xFF }; pub const Color = struct { color: u24, alpha: u8 = 0xFF };