feat: expose alpha component in theme colors

This commit is contained in:
CJ van den Berg 2024-11-04 17:35:02 +01:00
parent d49b4cddde
commit 5f1ca2fd3c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 42 additions and 71 deletions

View file

@ -35,6 +35,6 @@ input_option_hover: Style,
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 Color = u24;
pub const Color = struct { color: u24, alpha: u8 = 0xFF };
pub const Token = struct { id: usize, style: Style };
pub const Tokens = []const Token;